discourse/app/assets/javascripts/admin/addon/components/modal/start-backup.hbs
Vinoth Kannan 5a810fd6cc
UX: display warning message when uploads are not included in backup. (#23253)
Also, this PR will introduce a new checkbox in the modal window to manage whether the uploads should be included in the backup or not.
2023-08-31 10:21:07 +05:30

27 lines
728 B
Handlebars

<DModal
@title={{i18n "admin.backups.operations.backup.confirm"}}
@closeModal={{@closeModal}}
class="start-backup-modal"
>
<:body>
{{#if this.warningMessage}}
<div class={{this.warningCssClasses}}>{{html-safe
this.warningMessage
}}</div>
{{/if}}
{{#if this.canManageUploadsInBackup}}
<label>
<Input @type="checkbox" @checked={{this.includeUploads}} />
{{i18n "admin.backups.operations.backup.include_uploads"}}
</label>
{{/if}}
</:body>
<:footer>
<DButton
class="btn-primary"
@action={{this.startBackup}}
@label="yes_value"
/>
<DButton class="btn-flat" @action={{@closeModal}} @label="cancel" />
</:footer>
</DModal>