Fixes
This commit is contained in:
@@ -28,10 +28,6 @@ angular.module('app.frontend')
|
|||||||
this.componentManager = componentManager;
|
this.componentManager = componentManager;
|
||||||
this.componentStack = [];
|
this.componentStack = [];
|
||||||
|
|
||||||
$rootScope.$on("theme-changed", function(){
|
|
||||||
this.postThemeToExternalEditor();
|
|
||||||
}.bind(this))
|
|
||||||
|
|
||||||
$rootScope.$on("sync:taking-too-long", function(){
|
$rootScope.$on("sync:taking-too-long", function(){
|
||||||
this.syncTakingTooLong = true;
|
this.syncTakingTooLong = true;
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class ComponentManager {
|
/* This domain will be used to save context item client data */
|
||||||
|
let ClientDataDomain = "org.standardnotes.sn.components";
|
||||||
|
|
||||||
/* This domain will be used to save context item client data */
|
class ComponentManager {
|
||||||
let ClientDataDomain = "org.standardnotes.sn.components";
|
|
||||||
|
|
||||||
constructor($rootScope, modelManager, syncManager, themeManager, $timeout, $compile) {
|
constructor($rootScope, modelManager, syncManager, themeManager, $timeout, $compile) {
|
||||||
this.$compile = $compile;
|
this.$compile = $compile;
|
||||||
@@ -121,7 +121,7 @@ class ComponentManager {
|
|||||||
jsonForItem(item, component) {
|
jsonForItem(item, component) {
|
||||||
var params = {uuid: item.uuid, content_type: item.content_type, created_at: item.created_at, updated_at: item.updated_at, deleted: item.deleted};
|
var params = {uuid: item.uuid, content_type: item.content_type, created_at: item.created_at, updated_at: item.updated_at, deleted: item.deleted};
|
||||||
params.content = item.createContentJSONFromProperties();
|
params.content = item.createContentJSONFromProperties();
|
||||||
params.clientData = item.getDomainDataItem(component.url, ClientDataDomain);
|
params.clientData = item.getDomainDataItem(component.url, ClientDataDomain) || {};
|
||||||
this.removePrivatePropertiesFromResponseItems([params]);
|
this.removePrivatePropertiesFromResponseItems([params]);
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class MigrationManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(let editor of editors) {
|
for(let editor of editors) {
|
||||||
editor.setItemToBeDeleted();
|
this.modelManager.setItemToBeDeleted(editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.syncManager.sync();
|
this.syncManager.sync();
|
||||||
|
|||||||
Reference in New Issue
Block a user