mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 21:11:55 +00:00
Add frontend UI feedback of code state
This commit is contained in:
parent
d4e91c35e2
commit
18aaebd758
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user