Own drive migration
This commit is contained in:
@@ -456,7 +456,8 @@ define([
|
||||
edPublic: store.proxy.edPublic,
|
||||
friends: store.proxy.friends || {},
|
||||
settings: store.proxy.settings,
|
||||
thumbnails: disableThumbnails === false
|
||||
thumbnails: disableThumbnails === false,
|
||||
isDriveOwned: Boolean(Util.find(store, ['driveMetadata', 'owners']))
|
||||
}
|
||||
};
|
||||
cb(JSON.parse(JSON.stringify(metadata)));
|
||||
@@ -1523,8 +1524,9 @@ define([
|
||||
if (!data.userHash) {
|
||||
returned.anonHash = Hash.getEditHashFromKeys(secret);
|
||||
}
|
||||
}).on('ready', function () {
|
||||
}).on('ready', function (info) {
|
||||
if (store.userObject) { return; } // the store is already ready, it is a reconnection
|
||||
store.driveMetadata = info.metadata;
|
||||
if (!rt.proxy.drive || typeof(rt.proxy.drive) !== 'object') { rt.proxy.drive = {}; }
|
||||
var drive = rt.proxy.drive;
|
||||
// Creating a new anon drive: import anon pads from localStorage
|
||||
|
||||
@@ -667,6 +667,7 @@ define(function () {
|
||||
out.settings_ownDriveHint = "Migrating your drive to the new version will give you access to new features..."; // XXX
|
||||
out.settings_ownDriveButton = "Migrate"; // XXX
|
||||
out.settings_ownDriveConfirm = "Are you sure?"; // XXX
|
||||
out.settings_ownDrivePending = "Your account is being migrated. Please do not close or reload this page until the process has completed."; // XXX
|
||||
|
||||
out.settings_changePasswordTitle = "Change your password";
|
||||
out.settings_changePasswordHint = "Change your account's password. Enter your current password, and confirm the new password by typing it twice.<br>" +
|
||||
|
||||
Reference in New Issue
Block a user