mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
A couple of small but important fixes for later Ember releases
This commit is contained in:
parent
541c29ff4d
commit
875703a750
@ -1,4 +1,4 @@
|
||||
{{#if length}}
|
||||
{{#if model.length}}
|
||||
|
||||
{{#if currentUser.admin}}
|
||||
{{d-button label="admin.plugins.change_settings"
|
||||
|
@ -25,13 +25,18 @@ export function bufferedRender(obj) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
const caller = {};
|
||||
const caller = {
|
||||
_didRender: false
|
||||
};
|
||||
|
||||
// True in 1.13 or greater
|
||||
if (Ember.Helper) {
|
||||
caller.didRender = function() {
|
||||
this._super();
|
||||
this._customRender();
|
||||
if (!this._didRender) {
|
||||
this._customRender();
|
||||
}
|
||||
this._didRender = true;
|
||||
};
|
||||
} else {
|
||||
caller.didInsertElement = function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user