global-functions: $ScriptInstallUpdate: add symbol in notification

This commit is contained in:
Christian Hesse 2020-07-17 11:40:24 +02:00
parent d1cba3fc05
commit b91edc9e39

View file

@ -496,6 +496,7 @@
:global LogPrintExit; :global LogPrintExit;
:global ParseKeyValueStore; :global ParseKeyValueStore;
:global SendNotification; :global SendNotification;
:global SymbolForNotification;
:foreach Script in=$Scripts do={ :foreach Script in=$Scripts do={
:if ([ / system script print count-only where name=$Script ] = 0) do={ :if ([ / system script print count-only where name=$Script ] = 0) do={
@ -636,7 +637,8 @@
"https://git.eworm.de/cgit/routeros-scripts/about/#donate"); "https://git.eworm.de/cgit/routeros-scripts/about/#donate");
} }
$SendNotification "News and configuration changes" $NotificationMessage; $SendNotification ([ $SymbolForNotification "pushpin" ] . "News and configuration changes") \
$NotificationMessage;
:set SentConfigChangesNotification $ExpectedConfigVersion; :set SentConfigChangesNotification $ExpectedConfigVersion;
} }
} }
@ -741,6 +743,7 @@
"floppy-disk"="\F0\9F\92\BE"; "floppy-disk"="\F0\9F\92\BE";
"high-voltage-sign"="\E2\9A\A1"; "high-voltage-sign"="\E2\9A\A1";
"incoming-envelope"="\F0\9F\93\A8"; "incoming-envelope"="\F0\9F\93\A8";
"pushpin"="\F0\9F\93\8C";
"sparkles"="\E2\9C\A8"; "sparkles"="\E2\9C\A8";
"warning-sign"="\E2\9A\A0"; "warning-sign"="\E2\9A\A0";
"white-heavy-check-mark"="\E2\9C\85" "white-heavy-check-mark"="\E2\9C\85"