hard coded keys for testing

pull/1/head
David Benqué 5 years ago
parent a3b3a9e4fb
commit 5ee12f8da7

@ -1131,7 +1131,7 @@ define([
UI.createRadio('accessRights', 'cp-share-editable-true', UI.createRadio('accessRights', 'cp-share-editable-true',
Messages.share_linkEdit, false, { mark: {tabindex:1} })]), Messages.share_linkEdit, false, { mark: {tabindex:1} })]),
burnAfterReading = hashes.viewHash ? UI.createRadio('accessRights', 'cp-share-bar', burnAfterReading = hashes.viewHash ? UI.createRadio('accessRights', 'cp-share-bar',
'BAR', false, { mark: {tabindex:1}, label: {style: "display: none;"} }) : undefined // XXX 'View once and self-destruct', false, { mark: {tabindex:1}, label: {style: "display: none;"} }) : undefined // XXX KEY
]); ]);
// Burn after reading // Burn after reading
@ -1140,7 +1140,7 @@ define([
// the options to generate the BAR url // the options to generate the BAR url
var barAlert = h('div.alert.alert-danger.cp-alertify-bar-selected', { var barAlert = h('div.alert.alert-danger.cp-alertify-bar-selected', {
style: 'display: none;' style: 'display: none;'
}, " You have set this pad to self-destruct. Once a recipient opens this pad, it will be permanently deleted from the server. "); // XXX }, " You have set this pad to self-destruct. Once a recipient opens this pad, it will be permanently deleted from the server. "); // XXX KEY
var channel = Hash.getSecrets('pad', hash, config.password).channel; var channel = Hash.getSecrets('pad', hash, config.password).channel;
common.getPadMetadata({ common.getPadMetadata({
channel: channel channel: channel
@ -1182,7 +1182,7 @@ define([
cb(url); cb(url);
}); });
} }
return 'XXX Click on the button below to generate a link'; // XXX return 'Click on the button below to generate a link'; // XXX KEY
} }
var hash = (!hashes.viewHash || (edit && hashes.editHash)) ? hashes.editHash : hashes.viewHash; var hash = (!hashes.viewHash || (edit && hashes.editHash)) ? hashes.editHash : hashes.viewHash;
var href = burnAfterReading ? burnAfterReadingUrl : (origin + pathname + '#' + hash); var href = burnAfterReading ? burnAfterReadingUrl : (origin + pathname + '#' + hash);
@ -4037,8 +4037,8 @@ define([
}; };
UIElements.displayBurnAfterReadingPage = function (common, cb) { UIElements.displayBurnAfterReadingPage = function (common, cb) {
var info = h('p.cp-password-info', 'XXX Burn after reading'); // XXX var info = h('p.cp-password-info', 'This document will self-destruct as soon as you open it. It will be removed form the server, once you close this window you will not be able to access it again. If you are not ready to proceed you can close this window and come back later. '); // XXX KEY
var button = h('button', 'Proceed'); // XXX var button = h('button.primary', 'Proceed'); // XXX KEY
$(button).on('click', function () { $(button).on('click', function () {
cb(); cb();
@ -4053,7 +4053,7 @@ define([
UIElements.getBurnAfterReadingWarning = function (common) { UIElements.getBurnAfterReadingWarning = function (common) {
var priv = common.getMetadataMgr().getPrivateData(); var priv = common.getMetadataMgr().getPrivateData();
if (!priv.burnAfterReading) { return; } if (!priv.burnAfterReading) { return; }
return h('div.alert.alert-danger.cp-burn-after-reading', 'Pewpewpew'); // XXX return h('div.alert.alert-danger.cp-burn-after-reading', 'This pad has been deleted from the server, once you close this window you will not be able to access it again.'); // XXX KEY
}; };
var crowdfundingState = false; var crowdfundingState = false;

Loading…
Cancel
Save