Skip to content

Commit

Permalink
Abdul/environments actions (#5898)
Browse files Browse the repository at this point in the history
* added env iam actions

Signed-off-by: Abdul-Az <aazeez@progress.com>

* ui changes for IAM

Signed-off-by: Abdul-Az <aazeez@progress.com>

* added env test cases

Signed-off-by: Abdul-Az <aazeez@progress.com>

* environments test cases added

Signed-off-by: Abdul-Az <aazeez@progress.com>

* added environments api docs

Signed-off-by: Abdul-Az <aazeez@progress.com>
  • Loading branch information
iamazzeez authored and vinay033 committed May 16, 2022
1 parent 8e1d0e0 commit 9febf0b
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,45 @@
(pageChanged)="onPageChange($event)">
</app-page-picker>
</div>
<app-authorized [allOf]="['/api/v0/infra/servers/{server_id}/orgs/{org_id}/environments', 'get', [serverId, orgId]]">
<chef-table *ngIf="environments.length">
<chef-thead>
<chef-tr class="no_border_tr">
<chef-th class="no_border_th">Name</chef-th>
<chef-th class="no_border_th">Description</chef-th>
<chef-th class="no_border_th"></chef-th>
<chef-th class="no_border_th"></chef-th>
<chef-th class="no_border_th three-dot-column"></chef-th>
</chef-tr>
</chef-thead>
<chef-tbody>
<chef-tr *ngFor="let environment of environments">
<chef-td>
<a [routerLink]="['/infrastructure','chef-servers', serverId, 'organizations', orgId, 'environments', environment.name]">{{ environment.name }}</a>
</chef-td>
<chef-td>
{{ (environment.description.length &gt; 30)? (environment.description | slice:0:30)+'...' : environment.description }}
</chef-td>
<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>
</app-authorized>
</chef-td>
</chef-tr>
</chef-tbody>
</chef-table>
</app-authorized>
<app-page-picker
*ngIf="!searching"
class="environment-list-paging"
[total]="total"
[perPage]="per_page"
[page]="current_page"
(pageChanged)="onPageChange($event)">
</app-page-picker>
</ng-container>
</section>

0 comments on commit 9febf0b

Please sign in to comment.