Skip to content

Commit

Permalink
environments authz reverted
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul-Az <aazeez@progress.com>
  • Loading branch information
iamazzeez authored and chaitali-mane committed Dec 3, 2021
1 parent aaeff13 commit ed7ff9f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@
</label>
<div class="constraint-table">
<div class="edit">
<app-authorized [allOf]="['/api/v0/infra/servers/{server_id}/orgs/{org_id}/environments/{name}', 'post', [serverId, orgId, environment.name]]">
<chef-button tertiary class="right-button-box" tabindex="1"
(click)="openEditAttributeModal(environment?.default_attributes, 'Constraints')">
<span class="material-icons edit-item">mode_edit</span>
<span class="edit-text">Edit</span>
</chef-button>
</app-authorized>
<chef-button tertiary class="right-button-box" tabindex="1"
(click)="openEditAttributeModal(environment?.default_attributes, 'Constraints')">
<span class="material-icons edit-item">mode_edit</span>
<span class="edit-text">Edit</span>
</chef-button>
</div>
<hr class="divider-constraint" />
<div class="constraint-container" *ngIf="hasCookbookConstraints">
Expand Down Expand Up @@ -90,15 +88,13 @@
<chef-icon>remove_circle</chef-icon>
<span>Collapse All</span>
</chef-button>
<app-authorized [allOf]="['/api/v0/infra/servers/{server_id}/orgs/{org_id}/environments/{name}', 'post', [serverId, orgId, environment.name]]">
<chef-button
tertiary
class="right-button-box"
(click)="openEditAttributeModal(environment?.default_attributes, 'Default')">
<span class="material-icons edit-item">mode_edit</span>
<span class="edit-text">Edit</span>
</chef-button>
</app-authorized>
<chef-button
tertiary
class="right-button-box"
(click)="openEditAttributeModal(environment?.default_attributes, 'Default')">
<span class="material-icons edit-item">mode_edit</span>
<span class="edit-text">Edit</span>
</chef-button>
</div>
<hr class="divider-constraints" />
<div class="json-container">
Expand Down Expand Up @@ -133,15 +129,13 @@
<chef-icon>remove_circle</chef-icon>
<span>Collapse All</span>
</chef-button>
<app-authorized [allOf]="['/api/v0/infra/servers/{server_id}/orgs/{org_id}/environments/{name}', 'post', [serverId, orgId, environment.name]]">
<chef-button
tertiary
class="right-button-box"
(click)="openEditAttributeModal(environment?.override_attributes, 'Override')">
<span class="material-icons edit-item">mode_edit</span>
<span class="edit-text">Edit</span>
</chef-button>
</app-authorized>
<chef-button
tertiary
class="right-button-box"
(click)="openEditAttributeModal(environment?.override_attributes, 'Override')">
<span class="material-icons edit-item">mode_edit</span>
<span class="edit-text">Edit</span>
</chef-button>
</div>
<hr class="divider-constraints" />
<div class="json-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
<chef-td></chef-td>
<chef-td></chef-td>
<chef-td class="three-dot-column">
<app-authorized [allOf]="['/api/v0/infra/servers/{server_id}/orgs/{org_id}/environments/{name}', 'delete', [serverId, orgId, environment.name]]">
<mat-select panelClass="chef-control-menu" id="menu-{{environment.id}}">
<mat-option data-cy="delete" (onSelectionChange)="startEnvironmentDelete(environment)">Delete</mat-option>
</mat-select>
Expand Down

0 comments on commit ed7ff9f

Please sign in to comment.