Revert "disable create access btn if there is no team or user (#10767)" (#10918)

This reverts commit 720e7fb4e9.
pull/11470/head
Prabhat Khera 2024-01-08 08:24:52 +13:00 committed by GitHub
parent 30356d2c15
commit d2eb53eb18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@
<button
type="submit"
class="btn btn-primary btn-sm vertical-center"
ng-disabled="ctrl.availableUsersAndTeams.length === 0 || ctrl.formValues.multiselectOutput.length === 0 || ctrl.actionInProgress"
ng-disabled="ctrl.formValues.multiselectOutput.length === 0 || ctrl.actionInProgress"
ng-click="ctrl.authorizeAccess()"
button-spinner="ctrl.actionInProgress"
data-cy="access-createAccess"

View File

@ -94,7 +94,6 @@ class PorAccessManagementController {
const roles = await this.RoleService.roles();
this.roles = _.orderBy(roles, 'Priority', 'asc');
this.formValues = {
multiselectOutput: [],
selectedRole: this.roles.find((role) => !this.isRoleLimitedToBE(role)),
};