From 499fbd2cb3265baea6e448cfe8143175639ce7f0 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 19 Oct 2025 16:41:53 -0600 Subject: [PATCH] feat: show a better emoji-confirmation message, hide all emoji stuff from unregistered on items without emojis --- src/components/ActivityListItem.vue | 20 +++++++++++++++----- src/services/platforms/WebPlatformService.ts | 4 +++- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/components/ActivityListItem.vue b/src/components/ActivityListItem.vue index 04a1cd6b..93caeba8 100644 --- a/src/components/ActivityListItem.vue +++ b/src/components/ActivityListItem.vue @@ -79,6 +79,7 @@
@@ -503,11 +504,20 @@ export default class ActivityListItem extends Vue { ); if (userHasEmoji) { - // User already has this emoji, ask for confirmation to remove - const confirmed = confirm(`Do you want to remove your ${emoji} emoji?`); - if (confirmed) { - await this.removeEmoji(emoji); - } + + this.$notify( + { + group: "modal", + type: "confirm", + title: "Remove Emoji", + text: `Do you want to remove your ${emoji} ?`, + yesText: "Remove", + onYes: async () => { + await this.removeEmoji(emoji); + }, + }, + TIMEOUTS.MODAL, + ); } else { // User doesn't have this emoji, add it await this.submitEmoji(emoji); diff --git a/src/services/platforms/WebPlatformService.ts b/src/services/platforms/WebPlatformService.ts index ac1a3562..b5b25622 100644 --- a/src/services/platforms/WebPlatformService.ts +++ b/src/services/platforms/WebPlatformService.ts @@ -52,7 +52,9 @@ export class WebPlatformService implements PlatformService { // Only initialize SharedArrayBuffer setup for web platforms if (this.isWorker()) { - logger.debug("[WebPlatformService] Skipping initBackend call in worker context"); + logger.debug( + "[WebPlatformService] Skipping initBackend call in worker context", + ); return; }