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
c3920bfb
Commit
c3920bfb
authored
Dec 14, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cloudwatch): fixed broken cloudwatch edit page, #6697
parent
ca6a6675
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
public/app/features/plugins/ds_edit_ctrl.ts
+2
-1
public/app/plugins/datasource/cloudwatch/config_ctrl.ts
+1
-0
public/app/plugins/datasource/cloudwatch/partials/config.html
+8
-10
No files found.
public/app/features/plugins/ds_edit_ctrl.ts
View file @
c3920bfb
...
...
@@ -13,7 +13,8 @@ var defaults = {
type
:
'graphite'
,
url
:
''
,
access
:
'proxy'
,
jsonData
:
{}
jsonData
:
{},
encryptedFields
:
[]
};
var
datasourceCreated
=
false
;
...
...
public/app/plugins/datasource/cloudwatch/config_ctrl.ts
View file @
c3920bfb
...
...
@@ -12,6 +12,7 @@ export class CloudWatchConfigCtrl {
/** @ngInject */
constructor
(
$scope
)
{
debugger
;
this
.
current
.
jsonData
.
timeField
=
this
.
current
.
jsonData
.
timeField
||
'@timestamp'
;
this
.
current
.
jsonData
.
authType
=
this
.
current
.
jsonData
.
authType
||
'credentials'
;
...
...
public/app/plugins/datasource/cloudwatch/partials/config.html
View file @
c3920bfb
...
...
@@ -13,24 +13,21 @@
Credentials profile name, as specified in ~/.aws/credentials, leave blank for default
</info-popover>
</div>
<div
class=
"gf-form"
ng-show=
'ctrl.current.jsonData.authType == "keys"'
>
<label
class=
"gf-form-label width-13"
>
Access key
</label>
<label
class=
"gf-form-label width-13"
ng-show=
"ctrl.accessKeyExist"
>
Configured
</label>
<a
class=
"gf-form-button btn btn-danger btn-small"
type=
"submit"
ng-click=
"ctrl.resetAccessKey()"
ng-show=
"ctrl.accessKeyExist"
>
Reset
</a>
<input
type=
"text"
class=
"gf-form-input max-width-18"
ng-hide=
"ctrl.accessKeyExist"
ng-model=
'ctrl.current.secureJsonData.accessKey'
></input>
<a
class=
"btn btn-secondary gf-form-btn"
type=
"submit"
ng-click=
"ctrl.resetAccessKey()"
ng-show=
"ctrl.accessKeyExist"
>
Reset
</a>
<input
type=
"text"
class=
"gf-form-input max-width-18"
ng-hide=
"ctrl.accessKeyExist"
ng-model=
'ctrl.current.secureJsonData.accessKey'
></input>
</div>
<div
class=
"gf-form"
ng-show=
'ctrl.current.jsonData.authType == "keys"'
>
<label
class=
"gf-form-label width-13"
>
Secret key
</label>
<label
class=
"gf-form-label width-13"
ng-show=
"ctrl.secretKeyExist"
>
Configured
</label>
<a
class=
"btn btn-danger gf-form-button btn-small"
type=
"submit"
ng-click=
"ctrl.resetSecretKey()"
ng-show=
"ctrl.secretKeyExist"
>
Reset
</a>
<input
type=
"text"
class=
"gf-form-input max-width-18"
ng-hide=
"ctrl.secretKeyExist"
ng-model=
'ctrl.current.secureJsonData.secretKey'
></input>
<a
class=
"btn btn-secondary gf-form-btn"
type=
"submit"
ng-click=
"ctrl.resetSecretKey()"
ng-show=
"ctrl.secretKeyExist"
>
Reset
</a>
<input
type=
"text"
class=
"gf-form-input max-width-18"
ng-hide=
"ctrl.secretKeyExist"
ng-model=
'ctrl.current.secureJsonData.secretKey'
></input>
</div>
<div
class=
"gf-form"
ng-show=
'ctrl.current.jsonData.authType == "arn"'
>
<label
class=
"gf-form-label width-13"
>
Assume Role ARN
</label>
<input
type=
"text"
class=
"gf-form-input max-width-18"
ng-model=
'ctrl.current.jsonData.assumeRoleArn'
placeholder=
"arn:aws:iam:*"
></input>
...
...
@@ -38,6 +35,7 @@
ARN of Assume Role
</info-popover>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-13"
>
Default Region
</label>
<div
class=
"gf-form-select-wrapper max-width-18 gf-form-select-wrapper--has-help-icon"
>
...
...
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