#2002 project support/autostore popups & new file modal removed from participant view

This commit is contained in:
Zuzanna 2025-07-21 12:00:08 +02:00
parent d39be8d312
commit e00ef37f23
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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();
}