diff --git a/public/app/features/dashboard/history/history.html b/public/app/features/dashboard/history/history.html index 7968f1162c5..8ccf6e5b695 100644 --- a/public/app/features/dashboard/history/history.html +++ b/public/app/features/dashboard/history/history.html @@ -1,146 +1,122 @@ -
-

- Version history -

+

+ Version History + + > Comparing {{ctrl.baseInfo.version}} + + {{ctrl.newInfo.version}} + (Latest) + +

- - - +
+
+
-
+
+
+ + Fetching history list… +
-
-
- - Fetching history list… -
+
+
+ + + + + + + + + + + + + + + + + + + + + +
VersionDateUpdated ByNotes
+ + + {{revision.version}}{{revision.createdDateString}}{{revision.createdBy}}{{revision.message}} + +   Restore + + +   Latest + +
-
-
- - - - - - - - - - - - - - - - - - - - - -
VersionDateUpdated ByNotes
- - - {{revision.version}}{{revision.createdDateString}}{{revision.createdBy}}{{revision.message}} - -   Restore - - -   Latest - -
- -
- - Fetching more entries… -
- -
-
- - -
-
-
-
-
- -
- - -
-
+
- Fetching changes… + Fetching more entries…
-
- -   Restore to version {{ctrl.baseInfo.version}} - -

- Comparing Version {{ctrl.baseInfo.version}} - - Version {{ctrl.newInfo.version}} - (Latest) -

-
-

- Version {{ctrl.newInfo.version}} updated by - {{ctrl.newInfo.createdBy}} - {{ctrl.newInfo.ageString}} - - {{ctrl.newInfo.message}} -

-

- Version {{ctrl.baseInfo.version}} updated by - {{ctrl.baseInfo.createdBy}} - {{ctrl.baseInfo.ageString}} - - {{ctrl.baseInfo.message}} -

-
-
-
-
+
+
+
+ +
+
+ + Fetching changes… +
+ +
+ +
+

+ Version {{ctrl.newInfo.version}} updated by + {{ctrl.newInfo.createdBy}} + {{ctrl.newInfo.ageString}} + - {{ctrl.newInfo.message}} +

+

+ Version {{ctrl.baseInfo.version}} updated by + {{ctrl.baseInfo.createdBy}} + {{ctrl.baseInfo.ageString}} + - {{ctrl.baseInfo.message}} +

+
+ +
+
+
+ +
+ +
+ +
+
+
diff --git a/public/app/features/dashboard/partials/addAnnotationModal.html b/public/app/features/dashboard/partials/addAnnotationModal.html deleted file mode 100644 index f55f888375f..00000000000 --- a/public/app/features/dashboard/partials/addAnnotationModal.html +++ /dev/null @@ -1,65 +0,0 @@ - -
diff --git a/public/app/features/dashboard/partials/settings.html b/public/app/features/dashboard/partials/settings.html deleted file mode 100644 index 4285c2248ab..00000000000 --- a/public/app/features/dashboard/partials/settings.html +++ /dev/null @@ -1,64 +0,0 @@ -

General

- -
-
- - -
-
- - -
-
- - - -
- - -
- -
-
Options
-
-
- -
- -
-
- - - - -
-
- -
-
Panel Options
-
- -
- -
-
-
- - -
- - - - - diff --git a/public/app/features/dashboard/settings/settings.html b/public/app/features/dashboard/settings/settings.html index 382f2059fea..e594c7c7563 100644 --- a/public/app/features/dashboard/settings/settings.html +++ b/public/app/features/dashboard/settings/settings.html @@ -66,3 +66,15 @@
+ +
+ +
+ +
+

View JSON

+ +
+ +
+
diff --git a/public/app/features/dashboard/settings/settings.ts b/public/app/features/dashboard/settings/settings.ts index 60c886e89e5..10dd857e255 100644 --- a/public/app/features/dashboard/settings/settings.ts +++ b/public/app/features/dashboard/settings/settings.ts @@ -7,6 +7,7 @@ export class SettingsCtrl { dashboard: DashboardModel; isOpen: boolean; viewId: string; + json: string; sections: any[] = [ {title: 'General', id: 'settings', icon: "fa fa-fw fa-sliders"}, @@ -31,21 +32,23 @@ export class SettingsCtrl { for (let section of this.sections) { const sectionParams = _.defaults({editview: section.id}, params); section.url = url + '?' + $.param(sectionParams); - console.log(section.url); } - this.viewId = params.editview; - $rootScope.onAppEvent("$routeUpdate", this.onRouteUpdated.bind(this), $scope); - this.$scope.$on('$destroy', () => { this.dashboard.updateSubmenuVisibility(); this.$rootScope.$broadcast("refresh"); }); + + this.onRouteUpdated(); + $rootScope.onAppEvent("$routeUpdate", this.onRouteUpdated.bind(this), $scope); } onRouteUpdated() { - console.log('settings route updated'); this.viewId = this.$location.search().editview; + + if (this.viewId) { + this.json = JSON.stringify(this.dashboard.getSaveModelClone(), null, 2); + } } hideSettings() { diff --git a/public/app/features/templating/partials/editor.html b/public/app/features/templating/partials/editor.html index 4e6c53eb839..424023d6054 100644 --- a/public/app/features/templating/partials/editor.html +++ b/public/app/features/templating/partials/editor.html @@ -10,7 +10,7 @@
-
There are no template variables added yet
+
There are no variables added yet
Add variable