mirror of
https://github.com/discourse/discourse.git
synced 2025-01-06 04:33:48 +08:00
a4441b3984
This makes it much easier to check the staff action logs for a specific site setting. A small history icon will appear when hovering over a site setting name. On click, you will be taken to the pre-filtered staff action log for the site setting.
19 lines
624 B
JavaScript
19 lines
624 B
JavaScript
import Component from "@ember/component";
|
|
import BufferedContent from "discourse/mixins/buffered-content";
|
|
import SiteSetting from "admin/models/site-setting";
|
|
import SettingComponent from "admin/mixins/setting-component";
|
|
import { readOnly } from "@ember/object/computed";
|
|
|
|
export default Component.extend(BufferedContent, SettingComponent, {
|
|
updateExistingUsers: null,
|
|
|
|
_save() {
|
|
const setting = this.buffered;
|
|
return SiteSetting.update(setting.get("setting"), setting.get("value"), {
|
|
updateExistingUsers: this.updateExistingUsers,
|
|
});
|
|
},
|
|
|
|
staffLogFilter: readOnly("setting.staffLogFilter"),
|
|
});
|