create share modal in common-ui

This commit is contained in:
David Benqué
2019-11-20 13:11:38 +00:00
parent ae6f5074a7
commit 598ce5a329
3 changed files with 5 additions and 9 deletions

View File

@@ -1222,6 +1222,8 @@ define([
pathname: pathname
});
}
var modal = UI.dialog.tabs(tabs);
common.getAttribute(['general', 'share'], function (err, val) {
val = val || {};
if ((val.edit === false && hashes.viewHash) || !hashes.editHash) {
@@ -1246,7 +1248,7 @@ define([
hashes = _hashes;
$(link).find('#cp-share-link-preview').val(getLinkValue());
});
return tabs;
return modal;
};
UIElements.createFileShareModal = function (config) {