From 6be8cbd16d49f584b6632eb6697cb3472958456a Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Thu, 24 Oct 2024 16:30:52 +0300 Subject: fix(ci): fix eslint errors Signed-off-by: Andrey Borysenko --- apps/settings/src/components/AppList/AppItem.vue | 19 ++++++++----------- apps/settings/src/mixins/AppManagement.js | 1 - apps/settings/src/store/app-api-store.ts | 1 + 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/apps/settings/src/components/AppList/AppItem.vue b/apps/settings/src/components/AppList/AppItem.vue index 71e9dc98413..fa6946e1389 100644 --- a/apps/settings/src/components/AppList/AppItem.vue +++ b/apps/settings/src/components/AppList/AppItem.vue @@ -125,8 +125,7 @@ import SvgFilterMixin from '../SvgFilterMixin.vue' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js' import { mdiCogOutline } from '@mdi/js' -import { useAppApiStore } from '../../store/app-api-store' - +import { useAppApiStore } from '../../store/app-api-store.ts' export default { name: 'AppItem', @@ -136,14 +135,6 @@ export default { NcButton, NcIconSvgWrapper, }, - setup() { - const appApiStore = useAppApiStore() - - return { - appApiStore, - mdiCogOutline, - } - }, mixins: [AppManagement, SvgFilterMixin], props: { app: { @@ -173,7 +164,13 @@ export default { }, setup() { const store = useAppsStore() - return { store } + const appApiStore = useAppApiStore() + + return { + store, + appApiStore, + mdiCogOutline, + } }, data() { return { diff --git a/apps/settings/src/mixins/AppManagement.js b/apps/settings/src/mixins/AppManagement.js index 904e8abcaff..788a0d63168 100644 --- a/apps/settings/src/mixins/AppManagement.js +++ b/apps/settings/src/mixins/AppManagement.js @@ -5,7 +5,6 @@ import { showError } from '@nextcloud/dialogs' import rebuildNavigation from '../service/rebuild-navigation.js' -import { useAppApiStore } from '../store/app-api-store' export default { computed: { diff --git a/apps/settings/src/store/app-api-store.ts b/apps/settings/src/store/app-api-store.ts index b4ac7124189..3a7bd676a91 100644 --- a/apps/settings/src/store/app-api-store.ts +++ b/apps/settings/src/store/app-api-store.ts @@ -56,6 +56,7 @@ export const useAppApiStore = defineStore('app-api-apps', { }, actions: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any appsApiFailure(error: any) { showError(t('settings', 'An error occurred during the request. Unable to proceed.') + '
' + error.error.response.data.data.message, { isHTML: true }) logger.error(error) -- cgit v1.2.3