Commit fe7e1818 authored by Constance Okoghenun's avatar Constance Okoghenun

Fixed linit errors

parent 6948b56c
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
{ {
pageTitle: `'${_.escape(this.pageTitle)}'`, pageTitle: `'${_.escape(this.pageTitle)}'`,
}, },
false false,
); );
}, },
}, },
...@@ -56,22 +56,22 @@ export default { ...@@ -56,22 +56,22 @@ export default {
> >
{{ message }} {{ message }}
<form <form
ref="form" ref="form"
:action="deleteWikiUrl" :action="deleteWikiUrl"
method="post" method="post"
class="form-horizontal js-requires-input" class="form-horizontal js-requires-input"
> >
<input <input
ref="method" ref="method"
type="hidden" type="hidden"
name="_method" name="_method"
value="delete" value="delete"
/> />
<input <input
type="hidden" type="hidden"
name="authenticity_token" name="authenticity_token"
:value="csrfToken" :value="csrfToken"
/> />
</form> </form>
</gl-modal> </gl-modal>
</template> </template>
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
= link_to project_wiki_history_path(@project, @page), class: "btn" do = link_to project_wiki_history_path(@project, @page), class: "btn" do
= s_("Wiki|Page history") = s_("Wiki|Page history")
- if can?(current_user, :admin_wiki, @project) - if can?(current_user, :admin_wiki, @project)
%button.btn.btn-danger{ data: { toggle: 'modal', %button.btn.btn-danger{ data: { toggle: 'modal',
target: '#delete-wiki-modal', target: '#delete-wiki-modal',
delete_wiki_url: project_wiki_path(@project, @page), delete_wiki_url: project_wiki_path(@project, @page),
page_title: @page.title.capitalize }, page_title: @page.title.capitalize },
id: 'delete-wiki-button', id: 'delete-wiki-button',
type: 'button' } type: 'button' }
= _('Delete') = _('Delete')
......
...@@ -14,7 +14,7 @@ feature 'User deletes wiki page', :js do ...@@ -14,7 +14,7 @@ feature 'User deletes wiki page', :js do
click_on('Edit') click_on('Edit')
click_on('Delete') click_on('Delete')
find('.js-modal-primary-action').click find('.js-modal-primary-action').click
expect(page).to have_content('Page was successfully deleted') expect(page).to have_content('Page was successfully deleted')
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment