From 42d7308034f1ee6fd1f55e2693565f049c4c6f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 16 Jan 2018 12:49:57 +0100 Subject: [PATCH] fix: save as enter key now works and folder selection also works, fixes #10464 --- .../app/features/dashboard/dashboard_srv.ts | 2 +- .../folder_picker/folder_picker.html | 18 +++++----------- .../app/features/dashboard/save_as_modal.ts | 21 +++++-------------- 3 files changed, 11 insertions(+), 30 deletions(-) diff --git a/public/app/features/dashboard/dashboard_srv.ts b/public/app/features/dashboard/dashboard_srv.ts index 298dfc2966c..708ba047d2b 100644 --- a/public/app/features/dashboard/dashboard_srv.ts +++ b/public/app/features/dashboard/dashboard_srv.ts @@ -86,7 +86,7 @@ export class DashboardSrv { save(clone, options) { options = options || {}; - options.folderId = this.dash.meta.folderId; + options.folderId = options.folderId || this.dash.meta.folderId; return this.backendSrv .saveDashboard(clone, options) diff --git a/public/app/features/dashboard/folder_picker/folder_picker.html b/public/app/features/dashboard/folder_picker/folder_picker.html index 8722a19a5f8..17b7512d35d 100644 --- a/public/app/features/dashboard/folder_picker/folder_picker.html +++ b/public/app/features/dashboard/folder_picker/folder_picker.html @@ -9,29 +9,21 @@ -
- -
-
-
-
-
diff --git a/public/app/features/dashboard/save_as_modal.ts b/public/app/features/dashboard/save_as_modal.ts index 236b1f07b56..04b029cbb4c 100644 --- a/public/app/features/dashboard/save_as_modal.ts +++ b/public/app/features/dashboard/save_as_modal.ts @@ -13,7 +13,7 @@ const template = ` -