Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
</button>
<button *ngIf="canDelete" mat-button
class="font-weight-bold font-size-regular color-danger"
(click)="onDelete(workspace)"
[disabled]="workspace.status.phase === 'Launching' || workspace.status.phase === 'Pausing'">
(click)="onDelete(workspace)">
<mat-icon class="vertical-baseline" [fontSet]="'far'" [fontIcon]="'fa-trash-alt'"></mat-icon>
DELETE WORKSPACE
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/app/workspace/workspace.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<i class="far fa-play-circle mr-1 workspace-menu-icon"></i>
Resume
</button>
<button *ngIf="workspacePermissions.get(workspace.uid).delete" mat-menu-item (click)="onDelete(workspace)" [disabled]="workspace.status.phase === 'Terminating' || workspace.status.phase === 'Launching' || workspace.status.phase === 'Pausing'">
<button *ngIf="workspacePermissions.get(workspace.uid).delete" mat-menu-item (click)="onDelete(workspace)" [disabled]="workspace.status.phase === 'Terminating'">
<i class="fas fa-trash mr-1 workspace-menu-icon"></i>
Terminate
</button>
Expand Down
6 changes: 0 additions & 6 deletions src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,3 @@ mat-spinner.color-danger {
}
}
}

button {
&.color-danger[disabled=true] {
color: rgba(0, 0, 0, 0.26) !important;
}
}