2019-10-24 00:30:52 +08:00
|
|
|
import Component from "@ember/component";
|
2015-03-03 01:12:19 +08:00
|
|
|
import BufferedContent from "discourse/mixins/buffered-content";
|
|
|
|
import SiteSetting from "admin/models/site-setting";
|
2018-03-05 08:04:23 +08:00
|
|
|
import SettingComponent from "admin/mixins/setting-component";
|
2015-03-03 01:12:19 +08:00
|
|
|
|
2019-10-24 00:30:52 +08:00
|
|
|
export default Component.extend(BufferedContent, SettingComponent, {
|
2019-10-31 08:15:57 +08:00
|
|
|
updateExistingUsers: null,
|
|
|
|
|
2019-10-30 01:01:45 +08:00
|
|
|
_save() {
|
2019-05-27 16:15:39 +08:00
|
|
|
const setting = this.buffered;
|
2019-10-31 08:15:57 +08:00
|
|
|
return SiteSetting.update(setting.get("setting"), setting.get("value"), {
|
|
|
|
updateExistingUsers: this.updateExistingUsers
|
|
|
|
});
|
2015-03-03 01:12:19 +08:00
|
|
|
}
|
|
|
|
});
|