mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
DEV: Convert start-backup
modal to component-based API (#22812)
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { action } from "@ember/object";
|
||||
|
||||
export default class StartBackup extends Component {
|
||||
@action
|
||||
startBackupWithUploads() {
|
||||
this.args.model.startBackup(true);
|
||||
this.args.closeModal();
|
||||
}
|
||||
|
||||
@action
|
||||
startBackupWithoutUploads() {
|
||||
this.args.model.startBackup(false);
|
||||
this.args.closeModal();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user