mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
#2002 project support/autostore popups & new file modal removed from participant view
This commit is contained in:
parent
d39be8d312
commit
e00ef37f23
@ -3394,7 +3394,7 @@ define([
|
||||
UIElements.displayCrowdfunding = function (common, force) {
|
||||
if (crowdfundingState) { return; }
|
||||
var priv = common.getMetadataMgr().getPrivateData();
|
||||
|
||||
if (priv.app === 'form' && !priv.canEdit && !priv.form_auditorKey) {return; }
|
||||
|
||||
var todo = function () {
|
||||
crowdfundingState = true;
|
||||
@ -3464,7 +3464,7 @@ define([
|
||||
// This pad will be deleted automatically, it shouldn't be stored
|
||||
if (priv.burnAfterReading) { return; }
|
||||
|
||||
|
||||
if (priv.app === 'form' && !priv.canEdit && !priv.form_auditorKey) {return; }
|
||||
var typeMsg = priv.pathname.indexOf('/file/') !== -1 ? Messages.autostore_file :
|
||||
priv.pathname.indexOf('/drive/') !== -1 ? Messages.autostore_sf :
|
||||
Messages.autostore_pad;
|
||||
|
||||
@ -751,7 +751,9 @@ define([
|
||||
// Ctrl || Meta (mac)
|
||||
if (e.ctrlKey || (navigator.platform === "MacIntel" && e.metaKey)) {
|
||||
// Ctrl+E: New pad modal
|
||||
var priv = ctx.metadataMgr.getPrivateData();
|
||||
if (e.which === 69 && isApp) {
|
||||
if (priv.app === 'form' && !priv.canEdit && !priv.form_auditorKey) {return; }
|
||||
e.preventDefault();
|
||||
return void funcs.createNewPadModal();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user