Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat: add Nodes offline dialog #597

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

bludnic
Copy link
Member

@bludnic bludnic commented Feb 9, 2024

  • Login: Show meaningful error message when trying to login where all ADM nodes are offline (previously "Incorrect passphrase")
  • Nodes: Added a wrapper to handle NODE_OFFLINE errors
  • Chat: Show a dialog when all ADM nodes are offline
    image

Copy link

vercel bot commented Feb 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
adamant-im ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2024 4:02pm

@bludnic
Copy link
Member Author

bludnic commented Feb 9, 2024

Copy link

github-actions bot commented Feb 9, 2024

Deployed to https://msg-adamant-pr-597.surge.sh 🚀

@bludnic
Copy link
Member Author

bludnic commented Feb 10, 2024

@bludnic bludnic changed the title Added useClient() wrapper to catch AllNodesOfflineError within a Promise Chat: add Nodes offline dialog Feb 12, 2024
@bludnic bludnic marked this pull request as draft March 12, 2024 07:40
src/types/utils.ts Outdated Show resolved Hide resolved
@@ -98,8 +100,14 @@ export default defineComponent({
emit('login')
})
.catch((err) => {
if (isAxiosError(err)) {
emit('error', 'login.invalid_passphrase')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
emit('error', 'login.invalid_passphrase')
emit('error', 'login.cannot_retrieve_the_public_key')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants