Add auto-save support and saving indicator
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2020-10-14 11:25:26 -05:00
parent 9a53faf338
commit 9f80842b9f
6 changed files with 64 additions and 6 deletions

View File

@@ -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>

View File

@@ -48,3 +48,11 @@ ion-icon.invisible {
color: #4d4d4d;
}
}
.save-button {
color: #777;
i {
margin-right: 5px;
}
}