Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Always close inbox when navigating to notification
Rūdolfs Ošiņš committed 11 months ago
commit 0de67878a09ee664ff7511da03f119d8a1002144
parent 71069ef
1 file changed +6 -2
modified src/components/NotificationTeaser.svelte
@@ -6,6 +6,7 @@
  import type { RepoRoute } from "@app/views/repo/router";
  import type { NotificationItem } from "@bindings/cob/inbox/NotificationItem";

+
  import uniqWith from "lodash/uniqWith";
  import {
    authorForNodeId,
    formatTimestamp,
@@ -14,9 +15,9 @@
    patchStatusBackgroundColor,
    patchStatusColor,
  } from "@app/lib/utils";
+
  import { closeFocused } from "./Popover.svelte";
  import { compressActions } from "@app/lib/notification";
  import { push } from "@app/lib/router";
-
  import uniqWith from "lodash/uniqWith";

  import Icon from "./Icon.svelte";
  import InlineTitle from "./InlineTitle.svelte";
@@ -177,7 +178,10 @@
  class:selected
  class="notification-teaser"
  onclick={() => {
-
    if (route) void push(route);
+
    if (route) {
+
      void push(route);
+
      closeFocused();
+
    }
  }}>
  <div
    class="global-flex"