Prevent sharing a pad with a team from this team's drive

This commit is contained in:
yflory
2019-09-13 16:55:48 +02:00
parent b76cef9660
commit 799d93eb48
3 changed files with 15 additions and 6 deletions

View File

@@ -38,6 +38,8 @@ define([
: UIElements.createShareModal;
var friends = common.getFriends();
var teams = priv.teams;
var _wide = Object.keys(friends).length || Object.keys(teams).length;
var modal = f({
origin: origin,
@@ -58,7 +60,7 @@ define([
});
$('button.cancel').click(); // Close any existing alertify
UI.openCustomModal(UI.dialog.tabs(modal), {
wide: Object.keys(friends).length !== 0
wide: _wide
});
};
sframeChan.on('EV_SHARE_REFRESH', function (data) {