-
-
Notifications
You must be signed in to change notification settings - Fork 734
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
fix: check for enterprise in the create/edit templates UI #8985
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
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.
Can you add screenshots before & after just to understand the PR better?
@gastonfournier thanks, yeah updated description now |
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 don't think this improves the UI. If we don't want to show it, we should remove the item in the left side, making the UI blank doesn't seem like a good solution
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.
LG! Thanks for addressing the comment!
@@ -32,7 +40,7 @@ export const ReleaseManagement = () => { | |||
}} | |||
maxWidth='700px' | |||
permission={CREATE_RELEASE_TEMPLATE} | |||
disabled={false} | |||
disabled={!isEnterprise()} |
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.
👍
if (!releasePlansEnabled) { | ||
return null; | ||
} |
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 think this is fine if the feature is disabled you should not be able to see this... I don't think it's needed due to
unleash/frontend/src/component/menu/routes.ts
Lines 290 to 292 in 3696420
menu: { advanced: true, mode: ['enterprise'] }, | |
flag: 'releasePlans', | |
enterprise: true, |
Hiding with enterprise tag in routes wasn't enough anymore as we're showing those to Pro with upgrade messages. This temporarily disables the UI completely.
Before
After
Also disables the create screen if you know the direct url: