Updated tests
gitea/salix-front/pipeline/head There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2022-08-08 12:15:54 +02:00
parent c16ef7e783
commit 807a6fa16f
4 changed files with 9 additions and 2 deletions

View File

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

View File

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

View File

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

View File

@ -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({