Updated tests
gitea/salix-front/pipeline/head There was a failure building this commit
Details
gitea/salix-front/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
c16ef7e783
commit
807a6fa16f
|
@ -61,7 +61,7 @@ function responseError(error) {
|
||||||
router.push({ path: '/login' });
|
router.push({ path: '/login' });
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.reject(error);
|
return Promise.resolve(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
axios.interceptors.response.use((response) => response, responseError);
|
axios.interceptors.response.use((response) => response, responseError);
|
||||||
|
|
|
@ -60,6 +60,11 @@ async function fetch() {
|
||||||
params: { filter },
|
params: { filter },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!data) {
|
||||||
|
isLoading.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
hasMoreData.value = data.length === rowsPerPage;
|
hasMoreData.value = data.length === rowsPerPage;
|
||||||
|
|
||||||
for (const row of data) rows.value.push(row);
|
for (const row of data) rows.value.push(row);
|
||||||
|
|
|
@ -72,7 +72,7 @@ export function useNavigation() {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
const params = { moduleName: salixModules[moduleName] };
|
const params = { moduleName: salixModules[moduleName] };
|
||||||
const query = 'api/starredModules/toggleStarredModule';
|
const query = 'StarredModules/toggleStarredModule';
|
||||||
await axios.post(query, params);
|
await axios.post(query, params);
|
||||||
|
|
||||||
updateFavorites(moduleName);
|
updateFavorites(moduleName);
|
||||||
|
|
|
@ -22,6 +22,8 @@ async function onSubmit() {
|
||||||
password: password.value,
|
password: password.value,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!data) return;
|
||||||
|
|
||||||
await session.login(data.token, keepLogin.value);
|
await session.login(data.token, keepLogin.value);
|
||||||
|
|
||||||
quasar.notify({
|
quasar.notify({
|
||||||
|
|
Loading…
Reference in New Issue