-
Notifications
You must be signed in to change notification settings - Fork 1.3k
UI: fix create vpc private gateway for regular user #6400
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
UI: fix create vpc private gateway for regular user #6400
Conversation
…d the owner please note (1) isolated networks only . (2) networks in project are not impacted. the tabs are always visible. (3) 'network permission' tab is also only visible for domain/root admin and the owner. but not visible in project view.
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
utchoang
left a comment
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.
LGTM!
shwstppr
left a comment
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.
Tested on QA server, looks okay
| if (this.isAdmin()) { | ||
| this.rules = { | ||
| ipaddress: [{ required: true, message: this.$t('label.required') }], | ||
| gateway: [{ required: true, message: this.$t('label.required') }], | ||
| netmask: [{ required: true, message: this.$t('label.required') }] | ||
| } | ||
| } else { | ||
| this.rules = { | ||
| ipaddress: [{ required: true, message: this.$t('label.required') }], | ||
| gateway: [{ required: true, message: this.$t('label.required') }], | ||
| netmask: [{ required: true, message: this.$t('label.required') }], | ||
| associatednetworkid: [{ required: true, message: this.$t('label.required') }] | ||
| } | ||
| } |
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 (this.isAdmin()) { | |
| this.rules = { | |
| ipaddress: [{ required: true, message: this.$t('label.required') }], | |
| gateway: [{ required: true, message: this.$t('label.required') }], | |
| netmask: [{ required: true, message: this.$t('label.required') }] | |
| } | |
| } else { | |
| this.rules = { | |
| ipaddress: [{ required: true, message: this.$t('label.required') }], | |
| gateway: [{ required: true, message: this.$t('label.required') }], | |
| netmask: [{ required: true, message: this.$t('label.required') }], | |
| associatednetworkid: [{ required: true, message: this.$t('label.required') }] | |
| } | |
| } | |
| this.rules = { | |
| ipaddress: [{ required: true, message: this.$t('label.required') }], | |
| gateway: [{ required: true, message: this.$t('label.required') }], | |
| netmask: [{ required: true, message: this.$t('label.required') }] | |
| } | |
| if (!this.isAdmin()) { | |
| this.rules.associatednetworkid = [{ required: true, message: this.$t('label.required') }] | |
| } |
@weizhouapache can this be simplified?
Description
This PR fixes ui issues in the form to create vpc private gateway by regular user
This also contains other ui bug fixes below
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?