discourse/app/assets/javascripts/admin/components/site-settings/uploaded-image-list.js

17 lines
436 B
JavaScript

import Component from "@ember/component";
import showModal from "discourse/lib/show-modal";
export default Component.extend({
actions: {
showUploadModal({ value, setting }) {
showModal("admin-uploaded-image-list", {
admin: true,
title: `admin.site_settings.${setting.setting}.title`,
model: { value, setting }
}).setProperties({
save: v => this.set("value", v)
});
}
}
});