Browse Source

feat: open auto like dialog when clicking "liked vid/song" toast

Sv443 7 months ago
parent
commit
1bd54a621d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/features/input.ts

+ 2 - 0
src/features/input.ts

@@ -219,6 +219,7 @@ export async function initAutoLike() {
             getFeature("autoLikeShowToast") && showIconToast({
               message: t(`auto_liked_a_channels_${getCurrentMediaType()}`, likeChan.name),
               icon: "icon-auto_like",
+              onClick: () => getAutoLikeDialog().then((dlg) => dlg.open()),
             });
             log(`Auto-liked ${getCurrentMediaType()} from channel '${likeChan.name}' (${likeChan.id})`);
           }
@@ -280,6 +281,7 @@ export async function initAutoLike() {
                     getFeature("autoLikeShowToast") && showIconToast({
                       message: t("auto_liked_a_channels_video", likeChan.name),
                       icon: "icon-auto_like",
+                      onClick: () => getAutoLikeDialog().then((dlg) => dlg.open()),
                     });
                     log(`Auto-liked video from channel '${likeChan.name}' (${likeChan.id})`);
                   }