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:
parent
ff636de268
commit
7146d9e09a
3 changed files with 21 additions and 3 deletions
|
@ -5,9 +5,14 @@
|
||||||
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
</div>
|
<div class="gh-setting-header">Installed Themes</div>
|
||||||
|
<div class="gh-themes-container">
|
||||||
<div class="modal-footer">
|
|
||||||
|
|
||||||
|
<GhThemeTable
|
||||||
|
@themes={{this.themes}}
|
||||||
|
@activateTheme={{optional this.noop}}
|
||||||
|
@downloadTheme={{optional this.noop}}
|
||||||
|
@deleteTheme={{optional this.noop}} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
10
ghost/admin/app/components/modals/design/advanced.js
Normal file
10
ghost/admin/app/components/modals/design/advanced.js
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,7 @@ import {inject as service} from '@ember/service';
|
||||||
export default class SettingsDesignAdvancedRoute extends AuthenticatedRoute {
|
export default class SettingsDesignAdvancedRoute extends AuthenticatedRoute {
|
||||||
@service feature;
|
@service feature;
|
||||||
@service modals;
|
@service modals;
|
||||||
|
@service store;
|
||||||
|
|
||||||
beforeModel() {
|
beforeModel() {
|
||||||
super.beforeModel(...arguments);
|
super.beforeModel(...arguments);
|
||||||
|
@ -16,6 +17,8 @@ export default class SettingsDesignAdvancedRoute extends AuthenticatedRoute {
|
||||||
if (!this.feature.customThemeSettings) {
|
if (!this.feature.customThemeSettings) {
|
||||||
return this.transitionTo('settings');
|
return this.transitionTo('settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.store.findAll('theme');
|
||||||
}
|
}
|
||||||
|
|
||||||
activate() {
|
activate() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue