SyncManager exclude savedItems from retrievedItems, syncing source string

This commit is contained in:
Mo Bitar
2018-01-23 10:05:23 -06:00
parent 05af90290b
commit ed3f0aa620
14 changed files with 62 additions and 40 deletions

View File

@@ -80,7 +80,7 @@ class AccountMenu {
}, 1000)
});
})
})
}, null, "submitPasswordChange")
}
$scope.submitMfaForm = function() {
@@ -162,7 +162,7 @@ class AccountMenu {
var block = function() {
$timeout(function(){
$scope.onSuccessfulAuth()();
syncManager.sync();
syncManager.sync("onAuthSuccess");
})
}
@@ -280,7 +280,7 @@ class AccountMenu {
syncManager.sync((response) => {
callback(response, errorCount);
}, {additionalFields: ["created_at", "updated_at"]});
}, {additionalFields: ["created_at", "updated_at"]}, "importJSONData");
}.bind(this)
if(data.auth_params) {
@@ -443,7 +443,7 @@ class AccountMenu {
alert("Your items have been successfully re-encrypted and synced. You must sign out of all other signed in applications (mobile, desktop, web) and sign in again, or else you may corrupt your data.")
$scope.newPasswordData = {};
}, 1000)
});
}, null, "reencryptPressed");
}

View File

@@ -51,7 +51,7 @@ class EditorMenu {
}
component.setAppDataItem("defaultEditor", true);
component.setDirty(true);
syncManager.sync();
syncManager.sync("makeEditorDefault");
$scope.defaultEditor = component;
}
@@ -59,7 +59,7 @@ class EditorMenu {
$scope.removeEditorDefault = function(component) {
component.setAppDataItem("defaultEditor", false);
component.setDirty(true);
syncManager.sync();
syncManager.sync("removeEditorDefault");
$scope.defaultEditor = null;
}