diff --git a/public/app/features/dashboard/dashboard_srv.ts b/public/app/features/dashboard/dashboard_srv.ts index 9d622f4bbc7..1269ed571dc 100644 --- a/public/app/features/dashboard/dashboard_srv.ts +++ b/public/app/features/dashboard/dashboard_srv.ts @@ -117,6 +117,9 @@ export class DashboardSrv { newScope.clone = this.dash.getSaveModelClone(); newScope.clone.editable = true; newScope.clone.hideControls = false; + newScope.clone.meta = {}; + newScope.clone.meta.parentId = this.dash.meta.parentId; + newScope.clone.meta.isFolder = this.dash.meta.isFolder; this.$rootScope.appEvent('show-modal', { templateHtml: '', diff --git a/public/app/features/dashboard/folder_picker/picker.html b/public/app/features/dashboard/folder_picker/picker.html index 0659fcd5700..09947f32751 100644 --- a/public/app/features/dashboard/folder_picker/picker.html +++ b/public/app/features/dashboard/folder_picker/picker.html @@ -2,7 +2,7 @@ diff --git a/public/app/features/dashboard/folder_picker/picker.ts b/public/app/features/dashboard/folder_picker/picker.ts index 41892c81b31..92ded3a5256 100644 --- a/public/app/features/dashboard/folder_picker/picker.ts +++ b/public/app/features/dashboard/folder_picker/picker.ts @@ -42,7 +42,9 @@ export class FolderPickerCtrl { folderChanged() { const selected = _.find(this.folders, {title: this.selectedFolderSegment.value}); - this.dashboard.parentId = selected.id; + if (selected) { + this.dashboard.parentId = selected.id; + } } } diff --git a/public/app/features/dashboard/partials/settings.html b/public/app/features/dashboard/partials/settings.html index d3df6095e3f..b2e9b6bfd76 100644 --- a/public/app/features/dashboard/partials/settings.html +++ b/public/app/features/dashboard/partials/settings.html @@ -45,7 +45,7 @@ - +
diff --git a/public/app/features/dashboard/save_as_modal.ts b/public/app/features/dashboard/save_as_modal.ts index 0be82755e41..5c821eb1e2b 100644 --- a/public/app/features/dashboard/save_as_modal.ts +++ b/public/app/features/dashboard/save_as_modal.ts @@ -3,7 +3,7 @@ import coreModule from 'app/core/core_module'; const template = ` -