[PR #12] [MERGED] Improve home button logic #84

Closed
opened 2026-02-27 04:59:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/guyzyl/whatsapp-contact-sync/pull/12
Author: @guyzyl
Created: 8/22/2022
Status: Merged
Merged: 8/22/2022
Merged by: @guyzyl

Base: mainHead: improve-home-button-logic


📝 Commits (3)

📊 Changes

2 files changed (+40 additions, -3 deletions)

View changed files

📝 web/src/pages/Home.vue (+31 -3)
📝 web/src/services/ws.ts (+9 -0)

📄 Description

  • Disable button if WS is not connected. This is done to avoid cases where home page is loaded but backend is down.
  • Label home button as "Continue" if the user has already authorized WhatsApp / Google.
  • Try to connect WS again on fail. Also done to make sure WS is connected (eventually) if the backend is down.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/guyzyl/whatsapp-contact-sync/pull/12 **Author:** [@guyzyl](https://github.com/guyzyl) **Created:** 8/22/2022 **Status:** ✅ Merged **Merged:** 8/22/2022 **Merged by:** [@guyzyl](https://github.com/guyzyl) **Base:** `main` ← **Head:** `improve-home-button-logic` --- ### 📝 Commits (3) - [`8386d67`](https://github.com/guyzyl/whatsapp-contact-sync/commit/8386d67817d3b0b39fc3243d7308c25b3cef82a1) Update Home.vue - [`5a60c20`](https://github.com/guyzyl/whatsapp-contact-sync/commit/5a60c20dde045df5b8b187ce07c35df43d3c3227) Update ws.ts - [`549a5b4`](https://github.com/guyzyl/whatsapp-contact-sync/commit/549a5b4d7c9b7c758900162f0899ece20c12e867) Update Home.vue ### 📊 Changes **2 files changed** (+40 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `web/src/pages/Home.vue` (+31 -3) 📝 `web/src/services/ws.ts` (+9 -0) </details> ### 📄 Description - Disable button if WS is not connected. This is done to avoid cases where home page is loaded but backend is down. - Label home button as "Continue" if the user has already authorized WhatsApp / Google. - Try to connect WS again on fail. Also done to make sure WS is connected (eventually) if the backend is down. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 04:59:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whatsapp-contact-sync#84
No description provided.