Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
431aa79bb3c83959640764ac9b2f3493ed9c1651
discourse/app/assets/javascripts/admin/controllers/admin-plugins.js.es6

10 lines
214 B
Plaintext
Raw Normal View History

Fixes some Ember Deprecations for 1.13: - Remove ArrayController - Remove {{view}} from templates - Replace many cases of needs: [‘controller’] with inject - Enable Ember Legacy Views
2016-10-20 13:26:41 -04:00
export default Ember.Controller.extend({
FEATURE: New "Plugins" admin section with extensibility support
2015-02-06 17:32:59 -05:00
adminRoutes: function() {
Fixes some Ember Deprecations for 1.13: - Remove ArrayController - Remove {{view}} from templates - Replace many cases of needs: [‘controller’] with inject - Enable Ember Legacy Views
2016-10-20 13:26:41 -04:00
return this.get('model').map(p => {
if (p.get('enabled')) {
return p.admin_route;
}
FEATURE: Only show enabled plugins in the sidebar
2015-07-02 10:59:15 -07:00
}).compact();
FEATURE: New "Plugins" admin section with extensibility support
2015-02-06 17:32:59 -05:00
}.property()
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 95ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API