Skip to content

fix: Clearing Whitelabel Status#26

Merged
BenHall-1 merged 1 commit intoTicketsBot-cloud:masterfrom
DanPlayz0:fix/clear-custom-status
Jun 8, 2025
Merged

fix: Clearing Whitelabel Status#26
BenHall-1 merged 1 commit intoTicketsBot-cloud:masterfrom
DanPlayz0:fix/clear-custom-status

Conversation

@DanPlayz0
Copy link
Copy Markdown
Contributor

This pull request updates the Whitelabel.svelte file to improve the handling of bot status by introducing a new fetched object. This change ensures better separation between the bot's current status and the fetched status, simplifying the logic for updating and clearing statuses.

Enhancements to bot status handling:

  • Introduced a new fetched object to store the fetched bot status separately from the bot object. This improves data organization and avoids overwriting bot directly. (frontend/src/views/Whitelabel.svelte, [1] [2] [3]
  • Updated the conditional logic for displaying the "Clear Status" button to rely on fetched.status instead of bot.status and bot.status_type, simplifying the condition. (frontend/src/views/Whitelabel.svelte, frontend/src/views/Whitelabel.svelteL47-R47)
  • Added a blankStatus object to reset both bot and fetched when clearing the status, ensuring consistency in data handling. (frontend/src/views/Whitelabel.svelte, frontend/src/views/Whitelabel.svelteR275-R281)

@BenHall-1 BenHall-1 merged commit c214d2a into TicketsBot-cloud:master Jun 8, 2025
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.

2 participants