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:
parent
27362c5a4b
commit
04b5516bf2
9 changed files with 58 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue