mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-12-16 07:13:00 +00:00
Optimize tab switching: saving only happens if state is 'DIRTY'
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
class="btn btn-secondary"
|
||||
[class.active]="filename === file"
|
||||
[class.disabled]="filename === file"
|
||||
(click)="sendCodeContents(); selectCode(file); requestCode()"
|
||||
(click)="tabSwitchButtonHandler(file)"
|
||||
[disabled]="filename === file">
|
||||
{{file}}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user