Loading Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ RUN patch -u ${BASE_DIR}/lib/private/legacy/OC_Helper.php -i ${TMP_PATCH_DIR}/01 RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/015-email-mail-template.patch RUN patch -u ${BASE_DIR}/core/templates/layout.guest.php -i ${TMP_PATCH_DIR}/016-login-screen.patch RUN patch -u ${BASE_DIR}/core/Command/User/Setting.php -i ${TMP_PATCH_DIR}/018-occ-user-setting.patch RUN patch -u ${BASE_DIR}/apps/files/js/files.js -i ${TMP_PATCH_DIR}/020-patch_files.patch RUN rm -rf ${TMP_PATCH_DIR} # show reset pwd page with a query param Loading patches/020-patch_files.patch 0 → 100644 +43 −0 Original line number Diff line number Diff line --- ./apps/files/js/files.js 2022-09-23 11:28:21.551766200 +0530 +++ ./apps/files/js/files-new.js 2022-09-23 11:51:40.361766200 +0530 @@ -180,6 +180,19 @@ {type : 'error'} ); } else { + tlength=$('body').find('.toastify').length; + var exist=0 + $('body').find('.toastify').each(function(i, obj) { + var toastmsg=$(obj).text(); + toastmsg=toastmsg.replace('✖', '').trim(); + actualmsg=t('files','Your storage is full, files cannot be updated or synced anymore!'); + if(toastmsg===actualmsg){ + exist=1; + } + }); + if(exist==1){ + return; + } OC.Notification.show(t('files', 'Your storage is full, files cannot be updated or synced anymore!'), {type: 'error'} @@ -209,6 +222,20 @@ {type : 'error'} ); } else { + tlength=$('body').find('.toastify').length; + var exist=0 + $('body').find('.toastify').each(function(i, obj) { + var toastmsg=$(obj).text(); + toastmsg=toastmsg.replace('✖', '').trim(); + actualmsg=t('files', 'Your storage is almost full ({usedSpacePercent}%).', + {usedSpacePercent: usedSpacePercent}); + if(toastmsg===actualmsg){ + exist=1; + } + }); + if(exist==1){ + return; + } OC.Notification.show(t('files', 'Your storage is almost full ({usedSpacePercent}%).', {usedSpacePercent: usedSpacePercent}), {type : 'error'} Loading
Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ RUN patch -u ${BASE_DIR}/lib/private/legacy/OC_Helper.php -i ${TMP_PATCH_DIR}/01 RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/015-email-mail-template.patch RUN patch -u ${BASE_DIR}/core/templates/layout.guest.php -i ${TMP_PATCH_DIR}/016-login-screen.patch RUN patch -u ${BASE_DIR}/core/Command/User/Setting.php -i ${TMP_PATCH_DIR}/018-occ-user-setting.patch RUN patch -u ${BASE_DIR}/apps/files/js/files.js -i ${TMP_PATCH_DIR}/020-patch_files.patch RUN rm -rf ${TMP_PATCH_DIR} # show reset pwd page with a query param Loading
patches/020-patch_files.patch 0 → 100644 +43 −0 Original line number Diff line number Diff line --- ./apps/files/js/files.js 2022-09-23 11:28:21.551766200 +0530 +++ ./apps/files/js/files-new.js 2022-09-23 11:51:40.361766200 +0530 @@ -180,6 +180,19 @@ {type : 'error'} ); } else { + tlength=$('body').find('.toastify').length; + var exist=0 + $('body').find('.toastify').each(function(i, obj) { + var toastmsg=$(obj).text(); + toastmsg=toastmsg.replace('✖', '').trim(); + actualmsg=t('files','Your storage is full, files cannot be updated or synced anymore!'); + if(toastmsg===actualmsg){ + exist=1; + } + }); + if(exist==1){ + return; + } OC.Notification.show(t('files', 'Your storage is full, files cannot be updated or synced anymore!'), {type: 'error'} @@ -209,6 +222,20 @@ {type : 'error'} ); } else { + tlength=$('body').find('.toastify').length; + var exist=0 + $('body').find('.toastify').each(function(i, obj) { + var toastmsg=$(obj).text(); + toastmsg=toastmsg.replace('✖', '').trim(); + actualmsg=t('files', 'Your storage is almost full ({usedSpacePercent}%).', + {usedSpacePercent: usedSpacePercent}); + if(toastmsg===actualmsg){ + exist=1; + } + }); + if(exist==1){ + return; + } OC.Notification.show(t('files', 'Your storage is almost full ({usedSpacePercent}%).', {usedSpacePercent: usedSpacePercent}), {type : 'error'}