From d221b8e3c4e85e78b3440fe7c515c04ace94bfac Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 21 Oct 2024 12:04:20 +0200 Subject: [PATCH] chore: refs #7632 change requests --- src/boot/axios.js | 3 +-- src/components/NavBar.vue | 3 --- src/css/app.scss | 4 ++++ test/vitest/__tests__/stores/useStateQueryStore.spec.js | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/boot/axios.js b/src/boot/axios.js index 25095f9cc..3bd80f487 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -29,8 +29,7 @@ const onResponse = (response) => { const config = response.config; stateQuery.remove(config); - const isSaveRequest = config.method === 'patch'; - if (isSaveRequest) { + if (config.method === 'patch') { notify('globals.dataSaved', 'positive'); } diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 71d3b8a0f..9b0393489 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -114,9 +114,6 @@ const pinnedModulesRef = ref(); .q-header { background-color: var(--vn-section-color); } -.no-visible { - visibility: hidden; -} en: diff --git a/src/css/app.scss b/src/css/app.scss index 905934d4c..d4c76ad6b 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -288,3 +288,7 @@ input::-webkit-inner-spin-button { color: $info; } } + +.no-visible { + visibility: hidden; +} diff --git a/test/vitest/__tests__/stores/useStateQueryStore.spec.js b/test/vitest/__tests__/stores/useStateQueryStore.spec.js index d33c6c821..ab3afb007 100644 --- a/test/vitest/__tests__/stores/useStateQueryStore.spec.js +++ b/test/vitest/__tests__/stores/useStateQueryStore.spec.js @@ -11,8 +11,6 @@ describe('useStateQueryStore', () => { const stateQueryStore = useStateQueryStore(); const { add, isLoading, remove, reset } = useStateQueryStore(); const firstQuery = { url: 'myQuery' }; - const secondQuery = { url: 'myQuery' }; - const thirdQuery = { url: 'myQuery' }; function getQueries() { return stateQueryStore.queries; @@ -43,6 +41,9 @@ describe('useStateQueryStore', () => { }); it('should add and remove query', async () => { + const secondQuery = { ...firstQuery }; + const thirdQuery = { ...firstQuery }; + add(firstQuery); add(secondQuery);