From c3920bfba1177ca8941cc292d4d0d541f7912396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 14 Dec 2016 20:38:35 +0100 Subject: [PATCH] fix(cloudwatch): fixed broken cloudwatch edit page, #6697 --- public/app/features/plugins/ds_edit_ctrl.ts | 3 ++- .../datasource/cloudwatch/config_ctrl.ts | 1 + .../datasource/cloudwatch/partials/config.html | 18 ++++++++---------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/public/app/features/plugins/ds_edit_ctrl.ts b/public/app/features/plugins/ds_edit_ctrl.ts index 597f879e980..42e4f410315 100644 --- a/public/app/features/plugins/ds_edit_ctrl.ts +++ b/public/app/features/plugins/ds_edit_ctrl.ts @@ -13,7 +13,8 @@ var defaults = { type: 'graphite', url: '', access: 'proxy', - jsonData: {} + jsonData: {}, + encryptedFields: [] }; var datasourceCreated = false; diff --git a/public/app/plugins/datasource/cloudwatch/config_ctrl.ts b/public/app/plugins/datasource/cloudwatch/config_ctrl.ts index a60cd6ae8c9..bfa12d50a65 100644 --- a/public/app/plugins/datasource/cloudwatch/config_ctrl.ts +++ b/public/app/plugins/datasource/cloudwatch/config_ctrl.ts @@ -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'; diff --git a/public/app/plugins/datasource/cloudwatch/partials/config.html b/public/app/plugins/datasource/cloudwatch/partials/config.html index a08ed8be100..c67fc44a60b 100644 --- a/public/app/plugins/datasource/cloudwatch/partials/config.html +++ b/public/app/plugins/datasource/cloudwatch/partials/config.html @@ -13,24 +13,21 @@ Credentials profile name, as specified in ~/.aws/credentials, leave blank for default +
- Reset - + Reset +
+
- Reset - + Reset +
+
@@ -38,6 +35,7 @@ ARN of Assume Role
+