Jelajahi Sumber

dashfolders: support creating new folder in dashboard settings. #10197

Marcus Efraimsson 8 tahun lalu
induk
melakukan
7f9c0df464
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      public/app/features/dashboard/settings/settings.html

+ 5 - 3
public/app/features/dashboard/settings/settings.html

@@ -45,9 +45,11 @@
 			</bootstrap-tagsinput>
 			</bootstrap-tagsinput>
 		</div>
 		</div>
 		<folder-picker initial-title="ctrl.dashboard.meta.folderTitle"
 		<folder-picker initial-title="ctrl.dashboard.meta.folderTitle"
-								 initial-folder-id="ctrl.dashboard.meta.folderId"
-				 on-change="ctrl.onFolderChange($folder)"
-		 label-class="width-7">
+									 initial-folder-id="ctrl.dashboard.meta.folderId"
+									 on-change="ctrl.onFolderChange($folder)"
+									 enable-create-new="true"
+									 is-valid-selection="true"
+									 label-class="width-7">
 		</folder-picker>
 		</folder-picker>
 		<gf-form-switch class="gf-form" label="Editable" tooltip="Uncheck, then save and reload to disable all dashboard editing" checked="ctrl.dashboard.editable" label-class="width-7">
 		<gf-form-switch class="gf-form" label="Editable" tooltip="Uncheck, then save and reload to disable all dashboard editing" checked="ctrl.dashboard.editable" label-class="width-7">
 		</gf-form-switch>
 		</gf-form-switch>