+
store.getters.capabilities)
const optionsUser = computed(() => capabilities.value.files_sharing.user?.expire_date)
const optionsGroup = computed(() => capabilities.value.files_sharing.group?.expire_date)
- const available = computed(() => optionsUser.value || optionsGroup.value)
const enforced = computed(() => optionsUser.value?.enforced || optionsGroup.value?.enforced)
const dateMin = DateTime.now().setLocale(language.current).toJSDate()
const dateDefault = computed(() => {
@@ -151,7 +150,6 @@ export default defineComponent({
return {
language,
enforced,
- available,
dateCurrent,
dateMin,
dateMax,
diff --git a/packages/web-app-files/src/helpers/contextualHelpers.ts b/packages/web-app-files/src/helpers/contextualHelpers.ts
index bdf01503753..d7b2648b1db 100644
--- a/packages/web-app-files/src/helpers/contextualHelpers.ts
+++ b/packages/web-app-files/src/helpers/contextualHelpers.ts
@@ -52,7 +52,7 @@ export const shareInviteCollaboratorHelp = (options: ContextualHelperOptions) =>
)
}
],
- readMoreLink: 'https://doc.owncloud.com/webui/next/owncloud_web/web_for_users.html#sharing'
+ readMoreLink: 'https://doc.owncloud.com/go?to=webui-users-sharing'
},
options
)
@@ -92,7 +92,7 @@ export const shareSpaceAddMemberHelp = (options: ContextualHelperOptions) =>
)
}
],
- readMoreLink: 'https://doc.owncloud.com/webui/next/owncloud_web/web_for_users.html#sharing'
+ readMoreLink: 'https://doc.owncloud.com/go?to=webui-users-sharing'
},
options
)
@@ -120,7 +120,7 @@ export const shareViaLinkHelp = (options: ContextualHelperOptions) =>
)
}
],
- readMoreLink: 'https://doc.owncloud.com/webui/next/owncloud_web/web_for_users.html#sharing'
+ readMoreLink: 'https://doc.owncloud.com/go?to=webui-users-sharing'
},
options
)
@@ -140,7 +140,7 @@ export const shareViaIndirectLinkHelp = (options: ContextualHelperOptions) =>
)
}
],
- readMoreLink: 'https://doc.owncloud.com/webui/next/owncloud_web/web_for_users.html#sharing'
+ readMoreLink: 'https://doc.owncloud.com/go?to=webui-users-sharing'
},
options
)
diff --git a/packages/web-app-files/src/views/spaces/Projects.vue b/packages/web-app-files/src/views/spaces/Projects.vue
index c6de9eff2b4..6da5de18e4a 100644
--- a/packages/web-app-files/src/views/spaces/Projects.vue
+++ b/packages/web-app-files/src/views/spaces/Projects.vue
@@ -179,7 +179,7 @@ export default defineComponent({
const clientService = useClientService()
const { selectedResourcesIds } = useSelectedResources({ store })
const { can } = useAbility()
- const { current: currentLanguage } = useGettext()
+ const { current: currentLanguage, $gettext } = useGettext()
const runtimeSpaces = computed((): SpaceResource[] => {
return store.getters['runtime/spaces/spaces'].filter((s) => isProjectSpaceResource(s)) || []
@@ -244,6 +244,10 @@ export default defineComponent({
}
const getTotalQuota = (space: SpaceResource) => {
+ if (space.spaceQuota.total === 0) {
+ return $gettext('Unrestricted')
+ }
+
return formatFileSize(space.spaceQuota.total, currentLanguage)
}
const getUsedQuota = (space: SpaceResource) => {
diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.spec.ts b/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.spec.ts
index a98a9dab50a..92b10857397 100644
--- a/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.spec.ts
+++ b/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.spec.ts
@@ -43,11 +43,6 @@ const enforcedCapabilities = merge({}, enabledCapabilities, {
})
describe('InviteCollaborator ExpirationDatepicker', () => {
- it('only gets displayed if share expiration is supported', () => {
- const { wrapper } = createWrapper()
- expect(wrapper.html()).toMatchSnapshot()
- })
-
it('renders a button to open the datepicker and set an expiration date', () => {
const { wrapper } = createWrapper({ capabilities: bareCapabilities })
expect(wrapper.find('[data-testid="recipient-datepicker-btn"]').exists()).toBe(true)
diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/__snapshots__/ExpirationDatepicker.spec.ts.snap b/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/__snapshots__/ExpirationDatepicker.spec.ts.snap
deleted file mode 100644
index 028ef0a523b..00000000000
--- a/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/__snapshots__/ExpirationDatepicker.spec.ts.snap
+++ /dev/null
@@ -1,3 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`InviteCollaborator ExpirationDatepicker only gets displayed if share expiration is supported 1`] = ``;
diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/__snapshots__/FileShares.spec.ts.snap b/packages/web-app-files/tests/unit/components/SideBar/Shares/__snapshots__/FileShares.spec.ts.snap
index 711329ab283..1d53c15256e 100644
--- a/packages/web-app-files/tests/unit/components/SideBar/Shares/__snapshots__/FileShares.spec.ts.snap
+++ b/packages/web-app-files/tests/unit/components/SideBar/Shares/__snapshots__/FileShares.spec.ts.snap
@@ -4,7 +4,7 @@ exports[`FileShares collaborators list renders sharedWithLabel and sharee list 1