mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			444 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			444 B
		
	
	
	
		
			JavaScript
		
	
	
	
| define([
 | |
|   'angular',
 | |
| ],
 | |
| function (angular) {
 | |
|   'use strict';
 | |
| 
 | |
|   var module = angular.module('grafana.controllers');
 | |
| 
 | |
|   module.controller('AdminSettingsCtrl', function($scope, backendSrv) {
 | |
| 
 | |
|     $scope.init = function() {
 | |
|       $scope.getUsers();
 | |
|     };
 | |
| 
 | |
|     $scope.getUsers = function() {
 | |
|       backendSrv.get('/api/admin/settings').then(function(settings) {
 | |
|         $scope.settings = settings;
 | |
|       });
 | |
|     };
 | |
| 
 | |
|     $scope.init();
 | |
| 
 | |
|   });
 | |
| });
 |