Skip to content

Commit 942bf6c

Browse files
authored
Merge branch 'stage' into mwpw-174413-3in1-fallback-dc
2 parents 0a0f1ab + bfb5f17 commit 942bf6c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

acrobat/blocks/verb-widget/verb-widget.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ export const LIMITS = {
101101
maxFileSize: 104857600, // 100 MB
102102
maxFileSizeFriendly: '1 MB',
103103
acceptedFiles: ['.pdf', '.doc', '.docx', '.xml', '.ppt', '.pptx', '.xls', '.xlsx', '.rtf', '.txt', '.text', '.ai', '.form', '.bmp', '.gif', '.indd', '.jpeg', '.jpg', '.png', '.psd', '.tif', '.tiff'],
104-
maxNumFiles: 100,
105-
multipleFiles: true,
106-
uploadType: 'multifile-only',
104+
maxNumFiles: 1,
107105
subCopy: true,
108106
},
109107
'split-pdf': {
@@ -149,6 +147,7 @@ export const LIMITS = {
149147
maxFileSizeFriendly: '1 MB',
150148
acceptedFiles: ['.pdf'],
151149
maxNumFiles: 1,
150+
mobileApp: true,
152151
neverRedirect: true,
153152
},
154153
'compress-pdf': {
@@ -812,6 +811,15 @@ export default async function init(element) {
812811
accountType = (await window.adobeIMS.getProfile()).account_type;
813812
}
814813

814+
const mobileCta = document.querySelector('.verb-mobile-cta');
815+
if (VERB === 'add-comment' && mobileCta) {
816+
openFilePicker = true;
817+
widget.classList.remove('mobile-app');
818+
widgetLeft.removeChild(mobileCta);
819+
widgetLeft.insertBefore(widgetButton, errorState);
820+
widgetLeft.insertBefore(button, errorState);
821+
}
822+
815823
if (LIMITS[VERB].signedInAcceptedFiles) {
816824
button.accept = [...LIMITS[VERB].acceptedFiles, ...LIMITS[VERB].signedInAcceptedFiles];
817825
}
@@ -1096,6 +1104,10 @@ export default async function init(element) {
10961104

10971105
labelElement.innerHTML = verbCtaClone.innerHTML;
10981106
link.closest('div').append(labelElement);
1107+
const notification = link.closest('.notification');
1108+
if (notification && (isMobile || isTablet)) {
1109+
notification.style.display = 'none';
1110+
}
10991111
link.remove();
11001112
labelElement.addEventListener('click', (data) => {
11011113
soloClicked = true;

0 commit comments

Comments
 (0)