diff --git a/public/app/features/dashboard/dashboard_ctrl.ts b/public/app/features/dashboard/dashboard_ctrl.ts index 2c9d028ddf8..2909c55bad5 100644 --- a/public/app/features/dashboard/dashboard_ctrl.ts +++ b/public/app/features/dashboard/dashboard_ctrl.ts @@ -122,12 +122,6 @@ export class DashboardCtrl implements PanelContainer { this.$rootScope.$broadcast("refresh"); } - onFolderChange(folder) { - this.dashboard.folderId = folder.id; - this.dashboard.meta.folderId = folder.id; - this.dashboard.meta.folderTitle= folder.title; - } - getPanelContainer() { return this; } diff --git a/public/app/features/dashboard/dashnav/dashnav.ts b/public/app/features/dashboard/dashnav/dashnav.ts index 837d0d76537..284a913401d 100644 --- a/public/app/features/dashboard/dashnav/dashnav.ts +++ b/public/app/features/dashboard/dashnav/dashnav.ts @@ -131,18 +131,6 @@ export class DashNavCtrl { return this.dashboardSrv.showSaveAsModal(); } - viewJson() { - var clone = this.dashboard.getSaveModelClone(); - - this.$rootScope.appEvent('show-json-editor', { - object: clone, - }); - } - - onFolderChange(folderId) { - this.dashboard.folderId = folderId; - } - showSearch() { this.$rootScope.appEvent('show-dash-search'); } diff --git a/public/app/features/dashboard/partials/settings.html b/public/app/features/dashboard/partials/settings.html index 2295ff2713a..4285c2248ab 100644 --- a/public/app/features/dashboard/partials/settings.html +++ b/public/app/features/dashboard/partials/settings.html @@ -56,8 +56,7 @@ - - + diff --git a/public/app/features/dashboard/settings/settings.html b/public/app/features/dashboard/settings/settings.html index 465e7976d99..382f2059fea 100644 --- a/public/app/features/dashboard/settings/settings.html +++ b/public/app/features/dashboard/settings/settings.html @@ -62,3 +62,7 @@
+ +
+ +
diff --git a/public/app/features/dashboard/settings/settings.ts b/public/app/features/dashboard/settings/settings.ts index 186d900b3a4..60c886e89e5 100644 --- a/public/app/features/dashboard/settings/settings.ts +++ b/public/app/features/dashboard/settings/settings.ts @@ -21,8 +21,9 @@ export class SettingsCtrl { /** @ngInject */ constructor(private $scope, private $location, private $rootScope) { - // temp hack - this.$scope.dashboard = this.dashboard; + // temp hack for annotations and variables editors + // that rely on inherited scope + $scope.dashboard = this.dashboard; const params = this.$location.search(); const url = $location.path(); @@ -56,6 +57,12 @@ export class SettingsCtrl { }); }); } + + onFolderChange(folder) { + this.dashboard.folderId = folder.id; + this.dashboard.meta.folderId = folder.id; + this.dashboard.meta.folderTitle= folder.title; + } } export function dashboardSettings() { diff --git a/public/app/features/dashlinks/editor.html b/public/app/features/dashlinks/editor.html index 11dfdf74c1f..155aa78a6fe 100644 --- a/public/app/features/dashlinks/editor.html +++ b/public/app/features/dashlinks/editor.html @@ -1,80 +1,77 @@ -
-
Links and Dash Navigation
+

+ Dashboard Links +

-
- -
-
+
+
+
+
+ Type +
+ +
+
+
+ With tags + +
+ +
+ Title + +
+
- Type -
- -
+
  • Url
  • +
    -
    - With tags - -
    - -
    + +
    Title - +
    -
    -
    -
  • Url
  • - -
    -
    - Title - -
    +
    + Tooltip + +
    -
    - Tooltip - -
    - -
    - Icon -
    - -
    +
    + Icon +
    +
    +
    -
    -
    -
    - Include -
    -
    -
    - - - +
    +
    +
    + Include
    +
    + + + +
    +
    -
    -
    - -
    -
    - -
    -
    - -
    +
    +
    + +
    +
    + +
    +
    +
    - -