Refactor labels management from HAML to Vue - setup group labels Vue app
Part of &7139
Implementation plan
- Introduce a feature flag (
group_label_management_vue) - Create a mount element in app/views/groups/labels/index.html.haml#L8
- Create an
index.vuefile inapp/assets/javascripts/labels/componentsthat will rendernavbar.vueandtable.vue - Create an
index.jsfile inapp/assets/javascripts/labels. Export a function that mountsapp/assets/javascripts/labels/components/index.vue - Pass the following permissions to
index.jsvia data attributes:can?(current_user, :admin_label, @project)can?(current_user, :admin_label, label)
- Pass the following paths to
index.jsvia data attributes- index_path:
group_labels_path - create_path:
new_group_label_path(@group) - toggle_subscription_project_label_path:
toggle_subscription_project_label_path(project, ':id') - toggle_subscription_group_label_path:
toggle_subscription_group_label_path(label.group, ':id')
- index_path:
Edited by Peter Hegman