diff options
author | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-24 16:30:52 +0300 |
---|---|---|
committer | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-30 20:36:58 +0200 |
commit | 6be8cbd16d49f584b6632eb6697cb3472958456a (patch) | |
tree | bd17b4bbfe959a2af34df7c5912030b778e7d906 | |
parent | cac5be534156f7367a52108e18ba04565d2c2009 (diff) | |
download | nextcloud-server-6be8cbd16d49f584b6632eb6697cb3472958456a.tar.gz nextcloud-server-6be8cbd16d49f584b6632eb6697cb3472958456a.zip |
fix(ci): fix eslint errors
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
-rw-r--r-- | apps/settings/src/components/AppList/AppItem.vue | 19 | ||||
-rw-r--r-- | apps/settings/src/mixins/AppManagement.js | 1 | ||||
-rw-r--r-- | 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.') + '<br>' + error.error.response.data.data.message, { isHTML: true }) logger.error(error) |