|
|
@@ -1,16 +1,10 @@
|
|
|
-define([
|
|
|
- 'angular',
|
|
|
- 'app/core/config',
|
|
|
-],
|
|
|
-function (angular, config) {
|
|
|
- 'use strict';
|
|
|
+import angular from 'angular';
|
|
|
+import config from 'app/core/config';
|
|
|
|
|
|
- config = config.default;
|
|
|
-
|
|
|
- var module = angular.module('grafana.controllers');
|
|
|
-
|
|
|
- module.controller('ChangePasswordCtrl', function($scope, backendSrv, $location, navModelSrv) {
|
|
|
+export class ChangePasswordCtrl {
|
|
|
|
|
|
+ /** @ngInject **/
|
|
|
+ constructor($scope, backendSrv, $location, navModelSrv) {
|
|
|
$scope.command = {};
|
|
|
$scope.authProxyEnabled = config.authProxyEnabled;
|
|
|
$scope.ldapEnabled = config.ldapEnabled;
|
|
|
@@ -28,6 +22,7 @@ function (angular, config) {
|
|
|
$location.path("profile");
|
|
|
});
|
|
|
};
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- });
|
|
|
-});
|
|
|
+angular.module('grafana.controllers').controller('ChangePasswordCtrl', ChangePasswordCtrl);
|