|
|
@@ -131,8 +131,8 @@ angular
|
|
|
return {
|
|
|
template: HsCore.hslayersNgTemplate,
|
|
|
/* link: function (scope, element) {
|
|
|
- HsCore.fullScreenMap(element);
|
|
|
- } */
|
|
|
+ HsCore.fullScreenMap(element);
|
|
|
+ } */
|
|
|
};
|
|
|
})
|
|
|
.value('HsConfig', {
|
|
|
@@ -186,8 +186,9 @@ angular
|
|
|
PraAdjusterService
|
|
|
) {
|
|
|
'ngInject';
|
|
|
- $scope.HsCore = HsCore;
|
|
|
- $scope.panelVisible = HsLayoutService.panelVisible;
|
|
|
+ const vm = this;
|
|
|
+ vm.exists = HsCore.exists;
|
|
|
+ vm.panelVisible = HsLayoutService.panelVisible;
|
|
|
HsLayoutService.sidebarRight = false;
|
|
|
// HsLayoutService.sidebarToggleable = false;
|
|
|
// HsCore.singleDatasources = true;
|
|
|
@@ -196,7 +197,7 @@ angular
|
|
|
$scope.$on('scope_loaded', function (event, args) {
|
|
|
if (args === 'Sidebar') {
|
|
|
const el = angular.element(
|
|
|
- '<pra.adjuster hs.draggable ng-if="HsCore.exists(\'pra.adjuster\')" ng-show="panelVisible(\'adjuster\', this)"></pra.adjuster>'
|
|
|
+ '<pra.adjuster hs.draggable ng-if="vm.exists(\'pra.adjuster\')" ng-show="vm.panelVisible(\'adjuster\', this)"></pra.adjuster>'
|
|
|
)[0];
|
|
|
HsLayoutService.panelListElement.appendChild(el);
|
|
|
$compile(el)($scope);
|