Fix Clean CryptDrive button in settings
This commit is contained in:
parent
126a379ed2
commit
ad3ee14d2b
@ -77,7 +77,7 @@ define([
|
|||||||
// Settings only
|
// Settings only
|
||||||
common.resetDrive = function (cb) {
|
common.resetDrive = function (cb) {
|
||||||
postMessage("RESET_DRIVE", null, function (obj) {
|
postMessage("RESET_DRIVE", null, function (obj) {
|
||||||
if (obj.error) { return void cb(obj.error); }
|
if (obj && obj.error) { return void cb(obj.error); }
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -635,7 +635,7 @@ define([
|
|||||||
nThen(function (waitFor) {
|
nThen(function (waitFor) {
|
||||||
removeOwnedPads(waitFor);
|
removeOwnedPads(waitFor);
|
||||||
}).nThen(function () {
|
}).nThen(function () {
|
||||||
store.proxy.drive = store.fo.getStructure();
|
store.proxy.drive = store.userObject.getStructure();
|
||||||
sendDriveEvent('DRIVE_CHANGE', {
|
sendDriveEvent('DRIVE_CHANGE', {
|
||||||
path: ['drive', 'filesData']
|
path: ['drive', 'filesData']
|
||||||
}, clientId);
|
}, clientId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user