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