add feedback keys for password change and drive migration

This commit is contained in:
ansuz
2019-01-08 15:17:43 +01:00
parent ab832f38b7
commit 424a14625d
3 changed files with 12 additions and 7 deletions

View File

@@ -89,7 +89,6 @@ define([
value: token
}, function (obj) {
if (obj && obj.error) { return void cb(obj.error); }
Feedback.send('LOGOUT_EVERYWHERE');
cb();
});
};
@@ -934,7 +933,12 @@ define([
}
}).nThen(function () {
// We have the new drive, with the new login block
window.location.reload();
var feedbackKey = (password === newPassword)?
'OWNED_DRIVE_MIGRATION': 'PASSWORD_CHANGED';
Feedback.send(feedbackKey, undefined, function () {
window.location.reload();
});
});
};