adminSettingsCtrl.js 444 B

123456789101112131415161718192021222324
  1. define([
  2. 'angular',
  3. ],
  4. function (angular) {
  5. 'use strict';
  6. var module = angular.module('grafana.controllers');
  7. module.controller('AdminSettingsCtrl', function($scope, backendSrv) {
  8. $scope.init = function() {
  9. $scope.getUsers();
  10. };
  11. $scope.getUsers = function() {
  12. backendSrv.get('/api/admin/settings').then(function(settings) {
  13. $scope.settings = settings;
  14. });
  15. };
  16. $scope.init();
  17. });
  18. });