mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 18:15:11 +00:00
Implement feedback for "save" button
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div
|
||||
<div (textChanged)="saved = false"
|
||||
ace-editor
|
||||
[(text)]="code"
|
||||
[(mode)]="language"
|
||||
@ -16,4 +16,8 @@
|
||||
>
|
||||
</div>
|
||||
|
||||
<button (click)="sendCode()" type="submit" class="btn btn-secondary">Save</button>
|
||||
<button (click)="sendCode()"
|
||||
type="submit"
|
||||
class="btn btn-secondary"
|
||||
[class.btn-success]="saved === true"
|
||||
>Save<span *ngIf="saved === true">d!</span></button>
|
||||
|
Reference in New Issue
Block a user