Skip to content

Commit

Permalink
Fix setting the archive size limits (admin + personal settings).
Browse files Browse the repository at this point in the history
  • Loading branch information
rotdrop committed May 22, 2024
1 parent ac7245d commit ebc2cd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
:label="t(appName, 'Archive Size Limit')"
:hint="t(appName, 'Disallow archive extraction for archives with decompressed size larger than this limit.')"
:disabled="loading"
@submit="saveTextInput('archiveSizeLimit')"
@submit="saveTextInput('archiveSizeLimit', humanArchiveSizeLimit)"
/>
</NcSettingsSection>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/PersonalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
:label="t(appName, 'Archive Size Limit')"
:hint="t(appName, 'Disallow archive extraction for archives with decompressed size larger than this limit.')"
:disabled="loading"
@submit="saveTextInput('archiveSizeLimit')"
@submit="saveTextInput('archiveSizeLimit', humanArchiveSizeLimit)"
/>
<span v-if="archiveSizeLimitAdmin > 0" :class="{ hint: true, 'admin-limit-exceeded': archiveSizeLimitAdmin < archiveSizeLimit, 'icon-error': archiveSizeLimitAdmin < archiveSizeLimit }">
{{ t(appName, 'Administrative size limit: {value}', { value: humanArchiveSizeLimitAdmin }) }}
Expand Down

0 comments on commit ebc2cd6

Please sign in to comment.