-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert submenu to Vue #4739
Convert submenu to Vue #4739
Conversation
Remove unused /home/testRename submenu code
This is as far as I can go with this at the moment. The last Python conversion requires that all the routes be listed on the VueRouter (#4663). |
@@ -61,7 +61,7 @@ | |||
|
|||
<app-header></app-header> | |||
% if submenu: | |||
<%include file="/partials/submenu.mako"/> | |||
<submenu></submenu> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All components should use a 2 section name like sub-menu
, app-header
, etc. to avoid mixing with custom-html elements. I think the @vue/recommended
eslint rule adds this. We currently use the basic version.
<template v-for="menuItem in submenu"> | ||
<app-link :key="menuItem.title" :href="menuItem.path" class="btn-medusa top-5 bottom-5" | ||
v-if="!menuItem.confirm"> | ||
<span :class="`pull-left ${menuItem.icon || ''}`"></span> {{ menuItem.title }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use :class="['pull-left', menuItem.icon]"
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is set for v0.2.7 because it fixes the bug with the confirmation dialogs for removing shows, clearing history, etc.
To do:
controller !== 'schedule' && action !== 'previewRename'
.For
previewRename
- either remove the submenu argument from the handler,or keep it - if we want it. Make sure removing that submenu has no effect.
location.pathname
hasdisplayShow
?not-found
redirection for now