-
Notifications
You must be signed in to change notification settings - Fork 3
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
Palette should be aware of apostrophe-workflow's workflowMode
and hide the menu
#8
Comments
Always check whether apos.modules['apostrophe-workflow'] exists so you can
work well with or without it present.
…On Fri, Sep 7, 2018 at 5:07 PM, Stuart Romanek ***@***.***> wrote:
In a project level example of this we extended apostrophe-palette-widget's
self.load method and attached req.session.workflowMode to the widget
object.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAB9fTk9G290NLyVUHwSmHqRsQYi0YYsks5uYuAmgaJpZM4WferY>
.
--
*THOMAS BOUTELL, CHIEF SOFTWARE ARCHITECT*
P'UNK AVENUE | (215) 755-1330 | punkave.com
|
Hi @boutell and @stuartromanek, Not really sure how to implement stuart's solutions. For now I've overwritten apostrophe's workflow admin bar implementation, but a cleaner, smaller solution is preferable imo. Maybe a notSafelist that can be overwritten. You guys have an idea for a better solution?
|
I'm not sure we're talking about the same thing. I think this ticket is just about hiding the palette UI when the workflowMode is not |
Not sure of @ToshKoevoets 's path on this, however there should be a pattern around achieving this, yes @boutell ? Normal piece menus in the admin bar respect this mode without alteration. |
I think it could be as simple as checking `data.global._edit` before
showing the thing, unless that's already happening and it doesn't do the
trick.
…On Wed, Jul 8, 2020 at 10:17 AM Stuart Romanek ***@***.***> wrote:
Not sure of @ToshKoevoets <https://github.com/ToshKoevoets> 's path on
this, however there should be a pattern around achieving this, yes
@boutell <https://github.com/boutell> ? Normal piece menus in the admin
bar respect this mode without alteration.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH27PXLCST4CND6EGS6V3R2R5XJANCNFSM4FT55LMA>
.
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
@ToshKoevoets |
Hi @boutell and @stuartromanek, Probably didn't fully understand this ticket, I assumed it was referring to the the fact that palette was displaying in main menu in Live /preview mode, but it seems I misunderstood. @stuartromanek I saw the review and proposed changes. Thanks looks a lot better then my way! Gr. Tosh |
In a project level example of this we extended
apostrophe-palette-widget
'sself.load
method and attachedreq.session.workflowMode
to the widget object.The text was updated successfully, but these errors were encountered: