Merge branch 'staging' into newDrive
This commit is contained in:
@@ -297,19 +297,15 @@ define([
|
||||
return;
|
||||
}
|
||||
})
|
||||
.on('change', [], function () {
|
||||
.on('change', ['drive', 'migrate'], function () {
|
||||
var path = arguments[2];
|
||||
var value = arguments[1];
|
||||
console.log('abcd');
|
||||
console.log(arguments);
|
||||
if (path[0] === 'drive' && path[1] === "migrate" && value === 1) {
|
||||
console.log('PEWPEWPEW');
|
||||
if (path[0] === 'drive' && path[1] === "migrate" && value == 1) {
|
||||
rt.network.disconnect();
|
||||
rt.realtime.abort();
|
||||
Cryptpad.alert("Disconnected while migration");
|
||||
Cryptpad.alert(Cryptpad.Messages.fs_migration);
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Store.ready = function (f, Cryptpad) {
|
||||
|
||||
Reference in New Issue
Block a user