mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 09:42:00 +08:00
UX: Improvements for theme UI (#5650)
* Don't display "Settings: YAML" in Custom CSS/HTML section * Don't show the settings tab for remote/imported themes
This commit is contained in:
@ -37,9 +37,9 @@ export default Ember.Controller.extend({
|
|||||||
return this.shouldShow('mobile');
|
return this.shouldShow('mobile');
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed('onlyOverridden')
|
@computed('onlyOverridden', 'model.remote_theme')
|
||||||
showSettings() {
|
showSettings() {
|
||||||
return this.shouldShow('settings');
|
return this.shouldShow('settings') && !this.get('model.remote_theme');
|
||||||
},
|
},
|
||||||
|
|
||||||
@observes('onlyOverridden')
|
@observes('onlyOverridden')
|
||||||
|
@ -31,7 +31,7 @@ export default Ember.Controller.extend({
|
|||||||
return text + ": " + localized.join(" , ");
|
return text + ": " + localized.join(" , ");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
['common', 'desktop', 'mobile', 'settings'].forEach(target => {
|
['common', 'desktop', 'mobile'].forEach(target => {
|
||||||
descriptions.push(description(target));
|
descriptions.push(description(target));
|
||||||
});
|
});
|
||||||
return descriptions.reject(d=>Em.isBlank(d));
|
return descriptions.reject(d=>Em.isBlank(d));
|
||||||
|
Reference in New Issue
Block a user