mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Badge SQL controls would never show up, needed refresh
This commit is contained in:
@@ -16,6 +16,15 @@ export default Ember.Controller.extend(BufferedContent, {
|
||||
showDisplayName: propertyNotEqual('name', 'displayName'),
|
||||
canEditDescription: Em.computed.none('buffered.translatedDescription'),
|
||||
|
||||
hasQuery: function() {
|
||||
const bQuery = this.get('buffered.query');
|
||||
if (bQuery) {
|
||||
return bQuery.trim().length > 0;
|
||||
}
|
||||
const mQuery = this.get('model.query');
|
||||
return mQuery && mQuery.trim().length > 0;
|
||||
}.property('model.query', 'buffered.query'),
|
||||
|
||||
_resetSaving: function() {
|
||||
this.set('saving', false);
|
||||
this.set('savingStatus', '');
|
||||
|
||||
Reference in New Issue
Block a user