Merge branch 'soon'

This commit is contained in:
yflory 2018-02-22 12:44:28 +01:00
commit 8c42125ea0
2 changed files with 5 additions and 0 deletions

View File

@ -378,6 +378,10 @@ define([
if (val.present) { $(link).find('#cp-share-present').attr('checked', true); }
$(link).find('#cp-share-link-preview').val(getLinkValue(val));
});
common.getMetadataMgr().onChange(function () {
hashes = common.getMetadataMgr().getPrivateData().availableHashes;
$(link).find('#cp-share-link-preview').val(getLinkValue());
});
return tabs;
};
UIElements.createFileShareModal = function (config) {

View File

@ -625,6 +625,7 @@ define([
// Update metadata values and send new metadata inside
parsed = Utils.Hash.parsePadUrl(window.location.href);
defaultTitle = Utils.Hash.getDefaultName(parsed);
hashes = Utils.Hash.getHashes(secret.channel, secret);
readOnly = false;
updateMeta();