Add frontend UI feedback of code state

This commit is contained in:
Kristóf Tóth 2018-03-07 14:17:24 +01:00
parent d4e91c35e2
commit 18aaebd758

View File

@ -1,10 +1,11 @@
<div class="btn-group btn-group-sm flex-wrap">
<button *ngFor="let file of files"
class="btn btn-secondary"
(click)="tabSwitchButtonHandler(file)"
[class.active]="filename === file"
[class.disabled]="filename === file"
(click)="tabSwitchButtonHandler(file)"
[disabled]="filename === file">
[disabled]="filename === file"
[class.btn-success]="filename === file && codeState === 'SAVED'">
{{file}}
</button>
</div>