2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

improve upload functionality

This commit is contained in:
Sam 2017-05-10 14:43:05 -04:00
parent 27362c5a4b
commit 04b5516bf2
9 changed files with 58 additions and 16 deletions

View file

@ -168,7 +168,14 @@ export default Ember.Controller.extend({
},
removeUpload(upload) {
this.get("model").removeField(upload);
return bootbox.confirm(
I18n.t("admin.customize.theme.delete_upload_confirm"),
I18n.t("no_value"),
I18n.t("yes_value"), result => {
if (result) {
this.get("model").removeField(upload);
}
});
},
removeChildTheme(theme) {