Skip to content

Commit

Permalink
optimize login dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Nov 13, 2023
1 parent badb460 commit 44f01a3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Frontend/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import AuthenticatedAccount from '../components/AuthenticatedAccount.vue'
const baseUrl = document.baseURI
</script>

<template>
Expand All @@ -28,7 +30,7 @@ import AuthenticatedAccount from '../components/AuthenticatedAccount.vue'
stretch
flat
label="Swagger"
href="/swagger"
:href="`${baseUrl}swagger`"
/>

<q-space />
Expand Down
18 changes: 18 additions & 0 deletions src/Frontend/src/pages/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ async function login () {
return
}
if (response.status === 404) {
$q.notify({
type: 'negative',
message: 'Endpoint failure',
caption: 'Not Available'
})
return
}
if (response.status === 504) {
$q.notify({
type: 'negative',
message: 'Endpoint failure',
caption: 'Timeout'
})
return
}
password.value = ''
$q.notify({
Expand Down

0 comments on commit 44f01a3

Please sign in to comment.