Skip to content
Permalink
Browse files

panel_name is removed or renamed to panelName

Because it is used in a seperate directive now
refs #230
  • Loading branch information...
raitisbe committed Jul 20, 2019
1 parent b238d6a commit 5075f634991b14e0151ee0cdd19edebe3f4ee7c9
@@ -16,14 +16,6 @@ export default {
$scope.compNext = $scope.pageSize;
/**
* @ngdoc property
* @name hs.compositions.controller#panel_name
* @deprecated
* @type {string} composition_browser
* @description
*/
$scope.panel_name = 'composition_browser';
/**
* @ngdoc property
* @name hs.compositions.controller#keywords
* @public
* @type {Object}
@@ -232,7 +232,7 @@ angular.module('hs.core', ['hs.map', 'gettext', 'hs.drag', 'hs.layout', 'hs.api'
*/
panelVisible: function (which, scope) {
if (angular.isDefined(scope))
if (angular.isUndefined(scope.panel_name)) scope.panel_name = which;
if (angular.isUndefined(scope.panelName)) scope.panelName = which;
if (angular.isDefined(me.panel_statuses[which])) {
return me.panel_statuses[which] && me.panelEnabled(which);
}
@@ -97,7 +97,7 @@ export default ['$scope', '$rootScope', '$timeout', 'hs.map.service', 'hs.query.

//add current panel queriable - activate/deactivate
$scope.$on('core.mainpanel_changed', function (event, closed) {
if (angular.isDefined(closed) && closed.panel_name == "info") {
if (angular.isDefined(closed) && closed.panelName == "info") {
popup.hide();
Base.deactivateQueries();
}
@@ -5,7 +5,6 @@ export default {
$scope.compoData = StatusManager.compoData;
$scope.statusData = StatusManager.statusData;
$scope.userData = StatusManager.userData;
$scope.panel_name = 'saveMap';
$scope.config = config;

/**
@@ -61,7 +61,7 @@ define(['angular', 'ol', 'angular-material'],
}

$scope.$on('core.mainpanel_changed', function (event, closed) {
if (angular.isDefined(closed) && closed.panel_name == "info") {
if (angular.isDefined(closed) && closed.panelName == "info") {
Base.deactivateQueries();
}
else if (Core.current_panel_queryable) {

0 comments on commit 5075f63

Please sign in to comment.
You can’t perform that action at this time.