Remove the drive entry from the user menu if already in drive

pull/1/head
yflory 8 years ago
parent e865b89f43
commit 67d881b2cf

@ -415,6 +415,8 @@ define([
content: Messages.user_rename
});
}
var parsed = Cryptpad.parsePadUrl(window.location.href);
if (parsed && parsed.type && parsed.type !== 'drive') {
options.push({
tag: 'a',
attributes: {
@ -423,6 +425,7 @@ define([
},
content: Messages.login_accessDrive
});
}
// Add login or logout button depending on the current status
if (account) {
options.push({

Loading…
Cancel
Save