mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 12:45:13 +00:00
Simplify IDE handler
This commit is contained in:
@ -10,9 +10,9 @@
|
||||
[class.disabled]="filename === file"
|
||||
[disabled]="filename === file"
|
||||
[class.tao-tab-btn-saved]="filename === file && codeState === CodeState.SAVED">
|
||||
<span *ngIf="filename !== file">{{file}}</span>
|
||||
<span *ngIf="filename !== file">{{pathBasename(file)}}</span>
|
||||
<span *ngIf="filename === file"
|
||||
[class.underline]="codeState === CodeState.DIRTY">{{file}}</span>
|
||||
[class.underline]="codeState === CodeState.DIRTY">{{pathBasename(file)}}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@ -39,6 +39,6 @@
|
||||
|
||||
<ngx-monaco-editor [(ngModel)]="code"
|
||||
class="tfw-ide-editor"
|
||||
(ngModelChange)="editorWriteHanlder()"
|
||||
(keyup)="editorWriteHandler()"
|
||||
[options]="editorOptions"
|
||||
></ngx-monaco-editor>
|
||||
|
Reference in New Issue
Block a user