95_Dashboard: added support for alias attribute which, if set, is shown in the navigation instead of the device name
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9137 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- feature: 70_Pushover: Rewrite for Non-Blocking HttpUtils
|
||||||
- much more readings
|
- much more readings
|
||||||
- Support for emergency callback via push
|
- Support for emergency callback via push
|
||||||
|
|||||||
@@ -339,6 +339,17 @@ sub Dashboard_attr($$$) {
|
|||||||
addToDevAttrList($name, "dashboard_tab" . ($1 + 1) . "backgroundimage");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user