Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 54adefa

Browse files
feat: add backup to more deck actions
1 parent dcf953e commit 54adefa

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

studio/src/app/components/editor/actions/deck/app-actions-deck/app-actions-deck.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ export class AppActionsDeck {
144144
await this.openEmbed();
145145
} else if (detail.data.action === MoreAction.OFFLINE) {
146146
await this.goOnlineOffline();
147+
} else if (detail.data.action === MoreAction.BACKUP) {
148+
await this.backupOfflineData();
147149
}
148150
}
149151
});

studio/src/app/popovers/editor/actions/app-more-deck-actions/app-more-deck-actions.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export class AppMoreDeckActions {
3939
<p>{this.offline ? 'Go Online' : 'Go Offline'}</p>
4040
</a>
4141

42+
<a onClick={() => this.closePopover(MoreAction.BACKUP)} aria-label="Backup">
43+
<p>Backup</p>
44+
</a>
45+
4246
<app-action-help link={true} onHelpSelected={() => this.closePopover(MoreAction.HELP)}></app-action-help>
4347
</div>
4448
);

studio/src/app/utils/editor/more-action.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ export enum MoreAction {
1111
OFFLINE,
1212
IMAGES,
1313
REMOTE,
14+
BACKUP,
1415
}

0 commit comments

Comments
 (0)