Fixed theme's list not auto-updating on upload

no issue

- the ember data live record array needs to live on a tracked property rather than a getter for the template to auto-update
This commit is contained in:
Kevin Ansfield 2021-10-12 13:50:57 +01:00
parent c721bb3b1f
commit c01c2b3c74

View File

@ -8,6 +8,7 @@ export default class ChangeThemeController extends Controller {
@service themeManagement;
@tracked showAdvanced = false;
@tracked themes = this.store.peekAll('theme');
marketplaceThemes = [{
name: 'Edition',
@ -43,10 +44,6 @@ export default class ChangeThemeController extends Controller {
shortImage: 'assets/img/themes/Ease-cut.jpg'
}]
get themes() {
return this.store.peekAll('theme');
}
@action
toggleAdvanced() {
this.showAdvanced = !this.showAdvanced;