diff --git a/app/assets/javascripts/projects/index.js b/app/assets/javascripts/projects/index.js index 12ab0c2e7..09e655bf1 100644 --- a/app/assets/javascripts/projects/index.js +++ b/app/assets/javascripts/projects/index.js @@ -10,7 +10,7 @@ /* global animateSpinner initFormSubmitLinks HelperModule dropdownSelector Sidebar Turbolinks */ (function() { - const PERMISSIONS = ['editable', 'archivable', 'restorable']; + const PERMISSIONS = ['editable', 'archivable', 'restorable', 'moveable']; var projectsWrapper = '#projectsWrapper'; var toolbarWrapper = '#toolbarWrapper'; var cardsWrapper = '#cardsWrapper'; diff --git a/app/views/projects/index/_folder_card.html.erb b/app/views/projects/index/_folder_card.html.erb index 1582cbaa6..b95a75bc1 100644 --- a/app/views/projects/index/_folder_card.html.erb +++ b/app/views/projects/index/_folder_card.html.erb @@ -2,6 +2,7 @@ data-id="<%= folder.id %>" data-edit-url="<%= edit_project_folder_path(folder) %>" data-editable="<%= can_update_team?(current_team) %>" + data-moveable="<%= can_update_team?(current_team) %>" data-archivable="<%= folder.active? && can_update_team?(current_team) %>" data-restorable="<%= folder.archived? && can_update_team?(current_team) %>">
diff --git a/app/views/projects/index/_project_card.html.erb b/app/views/projects/index/_project_card.html.erb index 71bbf3112..5a5cb0b53 100644 --- a/app/views/projects/index/_project_card.html.erb +++ b/app/views/projects/index/_project_card.html.erb @@ -2,6 +2,7 @@ data-id="<%= project.id %>" data-edit-url="<%= edit_project_path(project) %>" data-editable="<%= can_manage_project?(project) %>" + data-moveable="<%= can_update_team?(current_team) %>" data-archivable="<%= project.active? && can_archive_project?(project) %>" data-restorable="<%= project.archived? && can_restore_project?(project) %>">
diff --git a/app/views/projects/index/_toolbar.html.erb b/app/views/projects/index/_toolbar.html.erb index b740fc4ca..74a7368ea 100644 --- a/app/views/projects/index/_toolbar.html.erb +++ b/app/views/projects/index/_toolbar.html.erb @@ -24,7 +24,7 @@ -