From 8914bff59458bf4411a57363531615c9578182b4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 23 Dec 2019 16:17:33 +0000 Subject: [PATCH] Add watch item to nav more menu, and tweak messages. --- module_index.json | 2 +- modules/feature-watchlist.php | 2 ++ peppermint.guiconfig.json | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/module_index.json b/module_index.json index c7875b3..d8dfb4f 100755 --- a/module_index.json +++ b/module_index.json @@ -195,7 +195,7 @@ "version": "0.1", "author": "Starbeamrainbowlabs", "description": "Adds per-user watchlists. When a page on a user's watchlist is edited, a notification email is sent.", - "lastupdate": 1577117322, + "lastupdate": 1577117779, "optional": false, "extra_data": [] }, diff --git a/modules/feature-watchlist.php b/modules/feature-watchlist.php index dbcf992..cfb5755 100644 --- a/modules/feature-watchlist.php +++ b/modules/feature-watchlist.php @@ -210,6 +210,8 @@ register_module([ header("location: $returnto"); $message .= " Click here to return to your previous page."; } + else + $message .= " Go back to your previous page, or review your watchlist."; exit(page_renderer::render_main("Watchlist update successful", "

$message

")); }); } diff --git a/peppermint.guiconfig.json b/peppermint.guiconfig.json index 4dc154c..59ee42c 100644 --- a/peppermint.guiconfig.json +++ b/peppermint.guiconfig.json @@ -170,6 +170,10 @@ [ "📤 Upload", "index.php?action=upload" + ], + [ + "🔭 Watch", + "index.php?action=watchlist-edit&do=add&page={page}" ] ] } },