diff options
author | Yuchen Pei <hi@ypei.me> | 2022-09-19 11:22:21 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-09-19 11:22:21 +1000 |
commit | ef1b927861f9a949aed20341144ffb5bfd42f038 (patch) | |
tree | 48bd4688928546bedc6504aad76bf6e0327fcef9 /javascript/app/controllers/application.js | |
parent | 117850d8f659517cb818a857dc04c8f5157795c4 (diff) |
Removing the web client
Diffstat (limited to 'javascript/app/controllers/application.js')
-rw-r--r-- | javascript/app/controllers/application.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/javascript/app/controllers/application.js b/javascript/app/controllers/application.js deleted file mode 100644 index 2936011..0000000 --- a/javascript/app/controllers/application.js +++ /dev/null @@ -1,21 +0,0 @@ -import {updateColorThemeCss,themes} from '../utils/color-themes'; -import Ember from 'ember'; - -export default Ember.Controller.extend({ - settings : Ember.inject.service('settings'), - themes: Object.values(themes), - init() { - this._super(...arguments); - updateColorThemeCss(this.get('settings').get('colorTheme')); - }, - currentTheme: Ember.computed('settings',function() { - return this.get('settings.colorTheme.id'); - }), - actions : { - themeChanged (themeId) { - const theme = themes[themeId]; - this.get('settings').set('colorTheme',theme); - updateColorThemeCss(theme); - } - } -}); |