Add auto-save support and saving indicator
This commit is contained in:
@@ -11,6 +11,12 @@
|
||||
class="title-input"
|
||||
></ion-input>
|
||||
</ion-title>
|
||||
<ion-buttons slot="end">
|
||||
<button class="save-button" (click)="editorService.triggerSave()" title="Manually save this note">
|
||||
<i *ngIf="!(editorService.isSaving || editorService.willSave)" class="fa fa-check-circle"></i>
|
||||
{{ (editorService.isSaving || editorService.willSave) ? 'Saving...' : 'Saved!' }}
|
||||
</button>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
|
||||
@@ -48,3 +48,11 @@ ion-icon.invisible {
|
||||
color: #4d4d4d;
|
||||
}
|
||||
}
|
||||
|
||||
.save-button {
|
||||
color: #777;
|
||||
|
||||
i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user