mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 10:31:56 +08:00
DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)
This commit is contained in:
@ -6,8 +6,8 @@ export default Ember.Controller.extend(bufferedProperty("siteText"), {
|
||||
|
||||
actions: {
|
||||
saveChanges() {
|
||||
const buffered = this.get("buffered");
|
||||
this.get("siteText")
|
||||
const buffered = this.buffered;
|
||||
this.siteText
|
||||
.save(buffered.getProperties("value"))
|
||||
.then(() => {
|
||||
this.commitBuffer();
|
||||
@ -20,10 +20,10 @@ export default Ember.Controller.extend(bufferedProperty("siteText"), {
|
||||
this.set("saved", false);
|
||||
bootbox.confirm(I18n.t("admin.site_text.revert_confirm"), result => {
|
||||
if (result) {
|
||||
this.get("siteText")
|
||||
this.siteText
|
||||
.revert()
|
||||
.then(props => {
|
||||
const buffered = this.get("buffered");
|
||||
const buffered = this.buffered;
|
||||
buffered.setProperties(props);
|
||||
this.commitBuffer();
|
||||
})
|
||||
|
Reference in New Issue
Block a user