diff options
Diffstat (limited to 'plugins/CustomVariables/angularjs/manage-custom-vars')
-rw-r--r-- | plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.controller.js | 5 | ||||
-rw-r--r-- | plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.directive.html | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.controller.js b/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.controller.js index 4cbc8dc3e8..f8098eb114 100644 --- a/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.controller.js +++ b/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.controller.js @@ -14,6 +14,9 @@ this.model = manageCustomVarsModel; this.siteName = piwik.siteName; - this.scopes = ['visit', 'page']; + this.scopes = [ + {value: 'visit', name: _pk_translate('General_TrackingScopeVisit')}, + {value: 'page', name: _pk_translate('General_TrackingScopePage')} + ]; } })();
\ No newline at end of file diff --git a/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.directive.html b/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.directive.html index ccba542a87..6ab9ea6ba6 100644 --- a/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.directive.html +++ b/plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.directive.html @@ -10,7 +10,7 @@ </div> <div ng-repeat="scope in manageCustomVars.scopes"> - <h2 class="secondary">{{ 'CustomVariables_ScopeX'|translate:(scope|ucfirst) }}</h2> + <h2 class="secondary">{{ 'CustomVariables_ScopeX'|translate:(scope.name) }}</h2> <table class="dataTable entityTable"> <thead> <tr> @@ -22,7 +22,7 @@ <tr> <td colspan="3" ng-show="manageCustomVars.model.isLoading">{{ 'General_Loading'|translate }}</td> </tr> - <tr ng-repeat="customVariables in manageCustomVars.model.customVariables|filter:{scope: scope}"> + <tr ng-repeat="customVariables in manageCustomVars.model.customVariables|filter:{scope: scope.value}"> <td class="index">{{ customVariables.index }}</td> <td> <span ng-show="(customVariables.usages|length) === 0" |