Skip to content
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

Conversation

datakurre
Copy link
Member

@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.

@datakurre datakurre requested a review from b4oshany June 26, 2017 23:07
@@ -189,7 +189,8 @@ define([
findinFilesView.triggerView
],
id: 'find',
app: self
app: self,
disable: function() {}
Copy link
Member Author

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).

Copy link
Contributor

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}";
Copy link
Member Author

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).

Copy link
Contributor

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 b4oshany merged commit bd3cb61 into theme-filemanager-searching-feature Jun 27, 2017
@b4oshany b4oshany deleted the datakurre-theme-filemanager-searching-feature branch June 27, 2017 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants