mirror of https://github.com/portainer/portainer
disable create access btn if there is no team or user (#10767)
parent
d58046eb68
commit
720e7fb4e9
|
@ -42,7 +42,7 @@
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="btn btn-primary btn-sm vertical-center"
|
class="btn btn-primary btn-sm vertical-center"
|
||||||
ng-disabled="ctrl.formValues.multiselectOutput.length === 0 || ctrl.actionInProgress"
|
ng-disabled="ctrl.availableUsersAndTeams.length === 0 || ctrl.formValues.multiselectOutput.length === 0 || ctrl.actionInProgress"
|
||||||
ng-click="ctrl.authorizeAccess()"
|
ng-click="ctrl.authorizeAccess()"
|
||||||
button-spinner="ctrl.actionInProgress"
|
button-spinner="ctrl.actionInProgress"
|
||||||
data-cy="access-createAccess"
|
data-cy="access-createAccess"
|
||||||
|
|
|
@ -94,6 +94,7 @@ class PorAccessManagementController {
|
||||||
const roles = await this.RoleService.roles();
|
const roles = await this.RoleService.roles();
|
||||||
this.roles = _.orderBy(roles, 'Priority', 'asc');
|
this.roles = _.orderBy(roles, 'Priority', 'asc');
|
||||||
this.formValues = {
|
this.formValues = {
|
||||||
|
multiselectOutput: [],
|
||||||
selectedRole: this.roles.find((role) => !this.isRoleLimitedToBE(role)),
|
selectedRole: this.roles.find((role) => !this.isRoleLimitedToBE(role)),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue