BigW Consortium Gitlab

Commit 8d0c7e84 by George Andrinopoulos

Rename wiki-edit class to js-wiki-edit

parent 4306c0b4
...@@ -11,6 +11,6 @@ export default class ShortcutsWiki extends ShortcutsNavigation { ...@@ -11,6 +11,6 @@ export default class ShortcutsWiki extends ShortcutsNavigation {
} }
editWiki() { editWiki() {
findAndFollowLink('.wiki-edit'); findAndFollowLink('.js-wiki-edit');
} }
} }
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn" do = link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn" do
Page history Page history
- if can?(current_user, :create_wiki, @project) && @page.latest? - if can?(current_user, :create_wiki, @project) && @page.latest?
= link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn wiki-edit" do = link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn js-wiki-edit" do
Edit Edit
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