-
Notifications
You must be signed in to change notification settings - Fork 149
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
[ACS-6278] - stop showing 'edit aspects' and 'manage rules' when node is a smart folder #3512
[ACS-6278] - stop showing 'edit aspects' and 'manage rules' when node is a smart folder #3512
Conversation
@@ -624,3 +626,19 @@ export function canOpenWithOffice(context: AcaRuleContext): boolean { | |||
|
|||
return context.permissions.check(file, ['update']); | |||
} | |||
|
|||
function isSmartFolder(context: RuleContext): boolean { |
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.
We should use AcaRuleContext
otherwise this rule won't be reusable in ADW as far as I remember
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.
isSmartFolder has parameter with RuleContext, because canEditAspects and canManagePermissions also have that. In ADW there is imported for example:
export const canEditAspects = (context: RuleContext)
so I think it would be fine if I just leave it like that?
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.
Okay fine for me
5ad5fe3
to
6c55b94
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
When node is a smart folder and user right clicks on it, there are 'manage rules' and 'edit aspects' visible.
What is the new behaviour?
Those options are not available for smart folders.
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: