feat: Added web notification of successful subscription import

This commit is contained in:
huzibaca
2024-09-13 11:24:49 +08:00
parent 772e01ad40
commit 0c6d417d8c
6 changed files with 16 additions and 4 deletions

View File

@@ -72,6 +72,12 @@ const Layout = () => {
listen("verge://notice-message", ({ payload }) => {
const [status, msg] = payload as [string, string];
switch (status) {
case "import_sub_url::ok":
Notice.success(t("Import Subscription Successful"));
break;
case "import_sub_url::error":
Notice.error(msg);
break;
case "set_config::ok":
Notice.success(t("Clash Config Updated"));
break;