Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3acf1063
Commit
3acf1063
authored
Nov 23, 2017
by
Patrick O'Carroll
Committed by
Torkel Ödegaard
Nov 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrated admin files to ts (#9975)
parent
b9483957
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
35 deletions
+25
-35
public/app/features/admin/admin.ts
+3
-3
public/app/features/admin/admin_edit_org_ctrl.ts
+7
-11
public/app/features/admin/admin_edit_user_ctrl.ts
+8
-10
public/app/features/admin/admin_list_orgs_ctrl.ts
+7
-11
No files found.
public/app/features/admin/admin.ts
View file @
3acf1063
import
AdminListUsersCtrl
from
'./admin_list_users_ctrl'
;
import
'./admin
ListOrgsC
trl'
;
import
'./admin
EditOrgC
trl'
;
import
'./admin
EditUserC
trl'
;
import
'./admin
_list_orgs_c
trl'
;
import
'./admin
_edit_org_c
trl'
;
import
'./admin
_edit_user_c
trl'
;
import
coreModule
from
'app/core/core_module'
;
...
...
public/app/features/admin/admin
EditOrgCtrl.j
s
→
public/app/features/admin/admin
_edit_org_ctrl.t
s
View file @
3acf1063
define
([
'angular'
,
],
function
(
angular
)
{
'use strict'
;
import
angular
from
'angular'
;
var
module
=
angular
.
module
(
'grafana.controllers'
);
module
.
controller
(
'AdminEditOrgCtrl'
,
function
(
$scope
,
$routeParams
,
backendSrv
,
$location
,
navModelSrv
)
{
export
class
AdminEditOrgCtrl
{
/** @ngInject */
constructor
(
$scope
,
$routeParams
,
backendSrv
,
$location
,
navModelSrv
)
{
$scope
.
init
=
function
()
{
$scope
.
navModel
=
navModelSrv
.
getAdminNav
();
...
...
@@ -48,7 +44,7 @@ function (angular) {
};
$scope
.
init
();
}
}
});
});
angular
.
module
(
'grafana.controllers'
).
controller
(
'AdminEditOrgCtrl'
,
AdminEditOrgCtrl
);
public/app/features/admin/admin
EditUserCtrl.j
s
→
public/app/features/admin/admin
_edit_user_ctrl.t
s
View file @
3acf1063
define
([
'angular'
,
'lodash'
,
],
function
(
angular
,
_
)
{
'use strict'
;
import
angular
from
'angular'
;
import
_
from
'lodash'
;
var
module
=
angular
.
module
(
'grafana.controllers'
);
export
class
AdminEditUserCtrl
{
module
.
controller
(
'AdminEditUserCtrl'
,
function
(
$scope
,
$routeParams
,
backendSrv
,
$location
,
navModelSrv
)
{
/** @ngInject */
constructor
(
$scope
,
$routeParams
,
backendSrv
,
$location
,
navModelSrv
)
{
$scope
.
user
=
{};
$scope
.
newOrg
=
{
name
:
''
,
role
:
'Editor'
};
$scope
.
permissions
=
{};
...
...
@@ -106,6 +103,7 @@ function (angular, _) {
};
$scope
.
init
();
}
}
});
});
angular
.
module
(
'grafana.controllers'
).
controller
(
'AdminEditUserCtrl'
,
AdminEditUserCtrl
);
public/app/features/admin/admin
ListOrgsCtrl.j
s
→
public/app/features/admin/admin
_list_orgs_ctrl.t
s
View file @
3acf1063
define
([
'angular'
,
],
function
(
angular
)
{
'use strict'
;
import
angular
from
'angular'
;
var
module
=
angular
.
module
(
'grafana.controllers'
);
module
.
controller
(
'AdminListOrgsCtrl'
,
function
(
$scope
,
backendSrv
,
navModelSrv
)
{
export
class
AdminListOrgsCtrl
{
/** @ngInject */
constructor
(
$scope
,
backendSrv
,
navModelSrv
)
{
$scope
.
init
=
function
()
{
$scope
.
navModel
=
navModelSrv
.
getAdminNav
();
$scope
.
getOrgs
();
...
...
@@ -35,7 +31,7 @@ function (angular) {
};
$scope
.
init
();
}
}
});
});
angular
.
module
(
'grafana.controllers'
).
controller
(
'AdminListOrgsCtrl'
,
AdminListOrgsCtrl
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment