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

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

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

Loading…
Cancel
Save