Fixes and improvements related to components

This commit is contained in:
Mo Bitar
2020-04-15 19:17:08 -05:00
parent 1280c2ec52
commit 407e3ea0d8
21 changed files with 276 additions and 270 deletions

View File

@@ -1,4 +1,4 @@
import { isDesktopApplication, dictToArray } from '@/utils';
import { isDesktopApplication } from '@/utils';
import {
SNPredicate,
ContentType,
@@ -7,7 +7,8 @@ import {
ComponentAction,
FillItemContent,
ComponentMutator,
Copy
Copy,
dictToArray
} from 'snjs';
import { PayloadContent } from '@/../../../../snjs/dist/@types/protocol/payloads/generator';
import { ComponentPermission } from '@/../../../../snjs/dist/@types/models/app/component';

View File

@@ -92,7 +92,7 @@ export class ThemeManager extends ApplicationService {
const activeThemes = this.application!.componentManager!.getActiveThemes();
for (const theme of activeThemes) {
if (theme) {
this.application!.componentManager!.deregisterComponent(theme);
this.application!.componentManager!.deregisterComponent(theme.uuid);
}
}
this.activeThemes = [];