2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

95_Dashboard: added support for alias attribute which, if set, is shown in the navigation instead of the device name

git-svn-id: https://svn.fhem.de/fhem/trunk@9137 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
talkabout 2015-08-26 19:35:34 +00:00
parent 20fb89ff04
commit 8718b84ce8
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 95_Dashboard: support for alias attribute, which if set, is shown
instead of the device name in the left navigation
- feature: 70_Pushover: Rewrite for Non-Blocking HttpUtils
- much more readings
- Support for emergency callback via push

View File

@ -339,6 +339,17 @@ sub Dashboard_attr($$$) {
addToDevAttrList($name, "dashboard_tab" . ($1 + 1) . "backgroundimage");
}
# if an alias is set to the dashboard, replace the name shown in the left navigation
# by this alias
if (
$cmd eq "set"
&& $attrName =~ m/alias/
) {
my $url = '/dashboard/' . $name;
$data{FWEXT}{$url}{NAME} = $attrVal;
}
return;
}