This commit is contained in:
parent
fcc213f307
commit
d221b8e3c4
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -114,9 +114,6 @@ const pinnedModulesRef = ref();
|
|||
.q-header {
|
||||
background-color: var(--vn-section-color);
|
||||
}
|
||||
.no-visible {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
<i18n>
|
||||
en:
|
||||
|
|
|
@ -288,3 +288,7 @@ input::-webkit-inner-spin-button {
|
|||
color: $info;
|
||||
}
|
||||
}
|
||||
|
||||
.no-visible {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue