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
Theme filemanager searching feature fixes #782
Theme filemanager searching feature fixes #782
Conversation
@@ -189,7 +189,8 @@ define([ | |||
findinFilesView.triggerView | |||
], | |||
id: 'find', | |||
app: self | |||
app: self, | |||
disable: function() {} |
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.
Disables disabling, because disabling "find" does not make sense in this context (other buttons may be disabled when the managed files are read only, but that does not prevent search).
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.
Agreed
@@ -1,6 +1,6 @@ | |||
@import "@{mockuplessPath}/ui.less"; | |||
/* just be lazy here and include all of bootstrap... */ | |||
@import "@{mockupPath}/filemanager/pattern.filemanager.less"; | |||
@import "@{mockup-patterns-filemanager}"; |
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.
It's best practice in mockup to use the aliases when they exist to make it easier to override resources in build tools (and I needed this to override Plone default version with this in my webpack dev env).
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.
I just realised that this is a separate branch, I context switch and scanned through this. Yes, I agree.
@b4oshany Small issue. If the "edited" theme is readonly, find menu actions get disabled. (Code in thememapper patterns calls disable for all button groups.) Iterating through all buttons to only enable find-menu looked complex in themepattern, so I propose simply disabling "disable" from find menu component.