chore: refs #7632 change requests
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2024-10-21 12:04:20 +02:00
parent fcc213f307
commit d221b8e3c4
4 changed files with 8 additions and 7 deletions

View File

@ -29,8 +29,7 @@ const onResponse = (response) => {
const config = response.config; const config = response.config;
stateQuery.remove(config); stateQuery.remove(config);
const isSaveRequest = config.method === 'patch'; if (config.method === 'patch') {
if (isSaveRequest) {
notify('globals.dataSaved', 'positive'); notify('globals.dataSaved', 'positive');
} }

View File

@ -114,9 +114,6 @@ const pinnedModulesRef = ref();
.q-header { .q-header {
background-color: var(--vn-section-color); background-color: var(--vn-section-color);
} }
.no-visible {
visibility: hidden;
}
</style> </style>
<i18n> <i18n>
en: en:

View File

@ -288,3 +288,7 @@ input::-webkit-inner-spin-button {
color: $info; color: $info;
} }
} }
.no-visible {
visibility: hidden;
}

View File

@ -11,8 +11,6 @@ describe('useStateQueryStore', () => {
const stateQueryStore = useStateQueryStore(); const stateQueryStore = useStateQueryStore();
const { add, isLoading, remove, reset } = useStateQueryStore(); const { add, isLoading, remove, reset } = useStateQueryStore();
const firstQuery = { url: 'myQuery' }; const firstQuery = { url: 'myQuery' };
const secondQuery = { url: 'myQuery' };
const thirdQuery = { url: 'myQuery' };
function getQueries() { function getQueries() {
return stateQueryStore.queries; return stateQueryStore.queries;
@ -43,6 +41,9 @@ describe('useStateQueryStore', () => {
}); });
it('should add and remove query', async () => { it('should add and remove query', async () => {
const secondQuery = { ...firstQuery };
const thirdQuery = { ...firstQuery };
add(firstQuery); add(firstQuery);
add(secondQuery); add(secondQuery);