GM panel UI improvements, added accordion component, worked on sprite logics, updated types, npm update

This commit is contained in:
2024-07-24 03:26:08 +02:00
parent a788cdef99
commit 026165cff3
8 changed files with 280 additions and 203 deletions

View File

@ -67,6 +67,7 @@ async function loginFunc() {
gameStore.setToken(response.token)
gameStore.initConnection()
return true // Indicate success
}
async function registerFunc() {
@ -84,6 +85,9 @@ async function registerFunc() {
return
}
await loginFunc()
const loginSuccess = await loginFunc()
if (!loginSuccess) {
notifications.addNotification({ message: 'Login after registration failed. Please try logging in manually.' })
}
}
</script>