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;
stateQuery.remove(config);
const isSaveRequest = config.method === 'patch';
if (isSaveRequest) {
if (config.method === 'patch') {
notify('globals.dataSaved', 'positive');
}

View File

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

View File

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

View File

@ -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);