summaryrefslogtreecommitdiff
path: root/modules/notification
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notification')
-rw-r--r--modules/notification/helpers/notification_menu.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/notification/helpers/notification_menu.php b/modules/notification/helpers/notification_menu.php
index 3781b663..d04aa8ba 100644
--- a/modules/notification/helpers/notification_menu.php
+++ b/modules/notification/helpers/notification_menu.php
@@ -24,12 +24,14 @@ class notification_menu_Core {
$item = $theme->item();
if ($item) {
+ $watching = notification::is_watching($item);
+
$menu
->append(Menu::factory("link")
->id("watch")
->label(t("Enable notifications for this album"))
->url(url::site("notification/watch/$item->id"))
- ->css_id("gWatchLink"));
+ ->css_id($watching ? "gRemoveWatchLink" : "gAddWatchLink"));
}
}
}