diff --git a/ui/src/app/components/expand-fullscreen.directive.js b/ui/src/app/components/expand-fullscreen.directive.js index f74aa91795..37491e71df 100644 --- a/ui/src/app/components/expand-fullscreen.directive.js +++ b/ui/src/app/components/expand-fullscreen.directive.js @@ -106,7 +106,9 @@ function ExpandFullscreen($compile, $document) { buttonSize = attrs.expandButtonSize; } - var html = '' + + var tooltipDirection = angular.isDefined(attrs.expandTooltipDirection) ? attrs.expandTooltipDirection : 'top'; + + var html = '' + '{{(expanded ? \'fullscreen.exit\' : \'fullscreen.expand\') | translate}}' + '' + '' + diff --git a/ui/src/app/components/timewindow.directive.js b/ui/src/app/components/timewindow.directive.js index 580b21bae6..b8e0382cbc 100644 --- a/ui/src/app/components/timewindow.directive.js +++ b/ui/src/app/components/timewindow.directive.js @@ -79,7 +79,8 @@ function Timewindow($compile, $templateCache, $filter, $mdPanel, $document, $mdM if (scope.asButton) { template = $templateCache.get(timewindowButtonTemplate); } else { - scope.direction = scope.direction || 'left'; + scope.direction = angular.isDefined(attrs.direction) ? attrs.direction : 'left'; + scope.tooltipDirection = angular.isDefined(attrs.tooltipDirection) ? attrs.tooltipDirection : 'top'; template = $templateCache.get(timewindowTemplate); } element.html(template); @@ -235,7 +236,6 @@ function Timewindow($compile, $templateCache, $filter, $mdPanel, $document, $mdM require: "^ngModel", scope: { asButton: '=asButton', - direction: '=?', disabled:'=ngDisabled' }, link: linker diff --git a/ui/src/app/components/timewindow.tpl.html b/ui/src/app/components/timewindow.tpl.html index 2778975c1c..07a02a3850 100644 --- a/ui/src/app/components/timewindow.tpl.html +++ b/ui/src/app/components/timewindow.tpl.html @@ -17,19 +17,19 @@ -->
- + {{ 'timewindow.edit' | translate }} - + {{ 'timewindow.edit' | translate }} {{model.displayValue}} - + {{ 'timewindow.edit' | translate }} diff --git a/ui/src/app/dashboard/dashboard.tpl.html b/ui/src/app/dashboard/dashboard.tpl.html index bf0b3ac1e5..716999edc0 100644 --- a/ui/src/app/dashboard/dashboard.tpl.html +++ b/ui/src/app/dashboard/dashboard.tpl.html @@ -16,8 +16,8 @@ --> - + {{ 'dashboard.open-toolbar' | translate }} more_horiz @@ -38,7 +38,7 @@ - + {{ 'dashboard.close-toolbar' | translate }} arrow_forward @@ -47,18 +47,18 @@ aria-label="{{ 'fullscreen.fullscreen' | translate }}" class="md-icon-button"> - + - + {{ 'device.aliases' | translate }} devices_other - + {{ 'dashboard.settings' | translate }} settings