Your work projects Vue - add new project and explore projects buttons
Proposal
Currently we are missing the New project
and Explore projects
buttons. Because there are some permission checks for these buttons I think we should move the page header back to HAML.
Implementation guide
- In
app/views/dashboard/projects/index.html.haml
change to:
- if Feature.enabled?(:your_work_projects_vue, current_user)
- if current_user.authorized_projects.present?
= render 'dashboard/projects_head'
#js-your-work-projects-app{ data: { app_data: dashboard_projects_app_data } }
- else
= render "zero_authorized_projects"
- else
- if show_projects?(@projects, params)
= render 'dashboard/projects_head'
= render 'projects'
- else
= render "zero_authorized_projects"
- Remove page title from
app/assets/javascripts/projects/your_work/components/app.vue
Edited by Peter Hegman