Share a folder with a read-only URL

This commit is contained in:
yflory
2019-10-14 17:37:54 +02:00
parent 7c710e57b7
commit 50829d3db1
6 changed files with 71 additions and 90 deletions

View File

@@ -109,6 +109,7 @@ define([
SFCommon.create(waitFor(function (c) { common = c; }));
}).nThen(function (waitFor) {
$('#cp-app-drive-connection-state').text(Messages.disconnected);
$('#cp-app-drive-edition-state').text(Messages.readonly);
var privReady = Util.once(waitFor());
var metadataMgr = common.getMetadataMgr();
if (JSON.stringify(metadataMgr.getPrivateData()) !== '{}') {
@@ -214,7 +215,7 @@ define([
};
// Add a "Burn this drive" button
if (!APP.loggedIn) {
if (!APP.loggedIn && !APP.readOnly) {
APP.$burnThisDrive = common.createButton(null, true).click(function () {
UI.confirm(Messages.fm_burnThisDrive, function (yes) {
if (!yes) { return; }