Welcome to mirror list, hosted at ThFree Co, Russian Federation.

manage-custom-vars.controller.js « manage-custom-vars « angularjs « CustomVariables « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8098eb114b7322a39a301f8c867bb4ae744ea9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*!
 * Piwik - free/libre analytics platform
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 */
(function () {
    angular.module('piwikApp').controller('ManageCustomVarsController', ManageCustomVarsController);

    ManageCustomVarsController.$inject = ['manageCustomVarsModel', 'piwik', '$filter'];

    function ManageCustomVarsController(manageCustomVarsModel, piwik, $filter) {
        manageCustomVarsModel.fetchUsages();

        this.model = manageCustomVarsModel;
        this.siteName = piwik.siteName;
        this.scopes = [
            {value: 'visit', name: _pk_translate('General_TrackingScopeVisit')},
            {value: 'page', name: _pk_translate('General_TrackingScopePage')}
        ];
    }
})();