aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorAndrey Borysenko <andrey18106x@gmail.com>2024-10-24 16:30:52 +0300
committerAndrey Borysenko <andrey18106x@gmail.com>2024-10-29 20:54:08 +0200
commit93b52013855461c78ca7495391730ac257675f4f (patch)
tree75c5f07c9ad7d33a38d456ab889b2bc12af5a3ab /apps/settings
parenta12b4da6af1fe46525b5ce2c92edad36974dfbb0 (diff)
downloadnextcloud-server-93b52013855461c78ca7495391730ac257675f4f.tar.gz
nextcloud-server-93b52013855461c78ca7495391730ac257675f4f.zip
fix(ci): fix eslint errors
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/components/AppList/AppItem.vue19
-rw-r--r--apps/settings/src/mixins/AppManagement.js1
-rw-r--r--apps/settings/src/store/app-api-store.ts1
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 59cce7306c6..5420e7af37c 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)