0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added non-functional themes table to advanced theme settings modal

refs https://github.com/TryGhost/Team/issues/1045

- prep for use in static design
- useful for inspecting API output when querying themes
This commit is contained in:
Kevin Ansfield 2021-09-20 12:13:51 +01:00
parent ff636de268
commit 7146d9e09a
3 changed files with 21 additions and 3 deletions

View file

@ -5,9 +5,14 @@
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
<div class="modal-body">
</div>
<div class="modal-footer">
<div class="gh-setting-header">Installed Themes</div>
<div class="gh-themes-container">
<GhThemeTable
@themes={{this.themes}}
@activateTheme={{optional this.noop}}
@downloadTheme={{optional this.noop}}
@deleteTheme={{optional this.noop}} />
</div>
</div>
</div>

View file

@ -0,0 +1,10 @@
import Component from '@glimmer/component';
import {inject as service} from '@ember/service';
export default class ModalsDesignAdvancedComponent extends Component {
@service store;
get themes() {
return this.store.peekAll('theme');
}
}

View file

@ -5,6 +5,7 @@ import {inject as service} from '@ember/service';
export default class SettingsDesignAdvancedRoute extends AuthenticatedRoute {
@service feature;
@service modals;
@service store;
beforeModel() {
super.beforeModel(...arguments);
@ -16,6 +17,8 @@ export default class SettingsDesignAdvancedRoute extends AuthenticatedRoute {
if (!this.feature.customThemeSettings) {
return this.transitionTo('settings');
}
this.store.findAll('theme');
}
activate() {