diff --git a/app/src/interfaces/file/file.vue b/app/src/interfaces/file/file.vue index 386be68e2e..87d0f492a7 100644 --- a/app/src/interfaces/file/file.vue +++ b/app/src/interfaces/file/file.vue @@ -21,7 +21,12 @@ 'is-svg': file?.type?.includes('svg'), }" > - + {{ fileExtension }} @@ -197,6 +202,8 @@ export default defineComponent({ return addQueryToPath(assetURL.value, { key: 'system-small-cover' }); }); + const imageThumbnailError = ref(null); + const { edits, stageEdits } = useEdits(); const { url, isValidURL, loading: urlLoading, importFromURL } = useURLImport(); @@ -219,6 +226,7 @@ export default defineComponent({ editDrawerActive, edits, stageEdits, + imageThumbnailError, }; function useFile() { diff --git a/app/src/modules/users/routes/item.vue b/app/src/modules/users/routes/item.vue index 7fad81228d..f879d92b4a 100644 --- a/app/src/modules/users/routes/item.vue +++ b/app/src/modules/users/routes/item.vue @@ -103,7 +103,12 @@
- +
@@ -261,6 +266,8 @@ export default defineComponent({ const confirmDelete = ref(false); const confirmArchive = ref(false); + const avatarError = ref(null); + const title = computed(() => { if (loading.value === true) return t('loading'); @@ -369,6 +376,7 @@ export default defineComponent({ revisionsAllowed, validationErrors, revert, + avatarError, }; function useBreadcrumb() { diff --git a/app/src/views/private/components/module-bar-avatar/module-bar-avatar.vue b/app/src/views/private/components/module-bar-avatar/module-bar-avatar.vue index 9859adac40..9a42dbbf0c 100644 --- a/app/src/views/private/components/module-bar-avatar/module-bar-avatar.vue +++ b/app/src/views/private/components/module-bar-avatar/module-bar-avatar.vue @@ -42,7 +42,13 @@ - + @@ -77,6 +83,8 @@ export default defineComponent({ return addTokenToURL(getRootPath() + `assets/${userStore.currentUser.avatar.id}?key=system-medium-cover`); }); + const avatarError = ref(null); + const userProfileLink = computed(() => { const id = userStore.currentUser?.id; return `/users/${id}`; @@ -88,7 +96,17 @@ export default defineComponent({ const userFullName = userStore.fullName; - return { t, userFullName, avatarURL, userProfileLink, signOutActive, signOutLink, notificationsDrawerOpen, unread }; + return { + t, + userFullName, + avatarURL, + userProfileLink, + signOutActive, + signOutLink, + notificationsDrawerOpen, + unread, + avatarError, + }; }, });