Editor TypeScript

This commit is contained in:
Mo Bitar
2020-04-11 19:42:50 -05:00
parent 16bde8d1d4
commit 2bc3658f1a
15 changed files with 794 additions and 614 deletions

View File

@@ -33,7 +33,7 @@ export class PreferencesManager extends ApplicationService {
streamPreferences() {
this.application.streamItems({
contentType: ContentTypes.UserPrefs,
contentType: ContentType.UserPrefs,
stream: () => {
this.loadSingleton();
}
@@ -41,7 +41,7 @@ export class PreferencesManager extends ApplicationService {
}
async loadSingleton() {
const contentType = ContentTypes.UserPrefs;
const contentType = ContentType.UserPrefs;
const predicate = new SNPredicate('content_type', '=', contentType);
this.userPreferences = await this.application.singletonManager.findOrCreateSingleton({
predicate: predicate,