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
11b74baf
Commit
11b74baf
authored
Jan 27, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Api token -> api key rename
parent
d2f21bc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/app/features/account/apiKeysCtrl.js
+3
-3
src/app/features/account/partials/apikeys.html
+1
-1
No files found.
src/app/features/account/apiKeysCtrl.js
View file @
11b74baf
...
...
@@ -16,17 +16,17 @@ function (angular) {
};
$scope
.
getTokens
=
function
()
{
backendSrv
.
get
(
'/api/
token
s'
).
then
(
function
(
tokens
)
{
backendSrv
.
get
(
'/api/
auth/key
s'
).
then
(
function
(
tokens
)
{
$scope
.
tokens
=
tokens
;
});
};
$scope
.
removeToken
=
function
(
id
)
{
backendSrv
.
delete
(
'/api/
token
s/'
+
id
).
then
(
$scope
.
getTokens
);
backendSrv
.
delete
(
'/api/
auth/key
s/'
+
id
).
then
(
$scope
.
getTokens
);
};
$scope
.
addToken
=
function
()
{
backendSrv
.
post
(
'/api/
token
s'
,
$scope
.
token
).
then
(
$scope
.
getTokens
);
backendSrv
.
post
(
'/api/
auth/key
s'
,
$scope
.
token
).
then
(
$scope
.
getTokens
);
};
$scope
.
init
();
...
...
src/app/features/account/partials/apikeys.html
View file @
11b74baf
...
...
@@ -39,7 +39,7 @@
<tr
ng-repeat=
"t in tokens"
>
<td>
{{t.name}}
</td>
<td>
{{t.role}}
</td>
<td>
{{t.
token
}}
</td>
<td>
{{t.
key
}}
</td>
<td
style=
"width: 1%"
>
<a
ng-click=
"removeToken(t.id)"
class=
"btn btn-danger btn-mini"
>
<i
class=
"fa fa-remove"
></i>
...
...
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