-
Notifications
You must be signed in to change notification settings - Fork 4
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
Keep .is-selected
on the program-flow header when it's edited via the sidebar
#1178
Conversation
This pull request has been linked to Shortcut Story #42651: Program flow header's |
Passing run #5790 ↗︎
Details:
Review all test suite changes for PR #1178 ↗︎ |
Pull Request Test Coverage Report for Build 43718550-e5db-4fa3-af2b-37b451542ee9
💛 - Coveralls |
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.
Pretty good refactor
@@ -97,6 +94,17 @@ const HeaderView = View.extend({ | |||
}, | |||
}); | |||
|
|||
const AddActionView = View.extend({ | |||
template: hbs` |
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.
program-flow__actions
should just be the className
here and the template just the button
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.
Good call, that's been updated 👍
… is edited via the sidebar
d506949
to
53cdada
Compare
Shortcut Story ID: [sc-42651]
.is-selected
gives the program flow header a grey background to indicate that it's currently being edited via the sidebar:When a user makes a change via the program-flow sidebar, the
.is-selected
class was being dropped when that header view re-rendered. But as long as the sidebar is open and the user is editing the program-flow, we want the.is-selected
class to remain.