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

Commit

Permalink
Merge pull request #1023 from deckgo/back-more-actions
Browse files Browse the repository at this point in the history
feat: add backup to more deck actions
  • Loading branch information
peterpeterparker authored Nov 28, 2020
2 parents dcf953e + 54adefa commit 29ed73c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ export class AppActionsDeck {
await this.openEmbed();
} else if (detail.data.action === MoreAction.OFFLINE) {
await this.goOnlineOffline();
} else if (detail.data.action === MoreAction.BACKUP) {
await this.backupOfflineData();
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export class AppMoreDeckActions {
<p>{this.offline ? 'Go Online' : 'Go Offline'}</p>
</a>

<a onClick={() => this.closePopover(MoreAction.BACKUP)} aria-label="Backup">
<p>Backup</p>
</a>

<app-action-help link={true} onHelpSelected={() => this.closePopover(MoreAction.HELP)}></app-action-help>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions studio/src/app/utils/editor/more-action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export enum MoreAction {
OFFLINE,
IMAGES,
REMOTE,
BACKUP,
}

0 comments on commit 29ed73c

Please sign in to comment.