feat: new revision history UI (#861)

This commit is contained in:
Aman Harwara
2022-02-16 19:39:04 +05:30
committed by GitHub
parent cc2bc1e21c
commit 71c7ee1bec
22 changed files with 1534 additions and 391 deletions

View File

@@ -32,6 +32,7 @@ export class NotesState {
contextMenuClickLocation: { x: number; y: number } = { x: 0, y: 0 };
contextMenuMaxHeight: number | 'auto' = 'auto';
showProtectedWarning = false;
showRevisionHistoryModal = false;
constructor(
private application: WebApplication,
@@ -44,6 +45,7 @@ export class NotesState {
contextMenuOpen: observable,
contextMenuPosition: observable,
showProtectedWarning: observable,
showRevisionHistoryModal: observable,
selectedNotesCount: computed,
trashedNotesCount: computed,
@@ -53,6 +55,7 @@ export class NotesState {
setContextMenuPosition: action,
setContextMenuMaxHeight: action,
setShowProtectedWarning: action,
setShowRevisionHistoryModal: action,
unselectNotes: action,
});
@@ -457,4 +460,8 @@ export class NotesState {
private get io() {
return this.application.io;
}
setShowRevisionHistoryModal(show: boolean): void {
this.showRevisionHistoryModal = show;
}
}