mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Angular/React: Migrates FolderPicker from angular to react * move to core * snap * minor changes * more removes * Managing creating new and saving in movetofolderctrl * Do not use new forms.field, fix select menu * FolderPicker responsible to creating new folder * create new as prop * snap * remove unnecessary things * remove console log * snap * fix null checks * add search debouncing * set folder to state, null check * typing folder * adding case for loadOptions * snap Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
<div class="modal-body">
|
|
<div class="modal-header">
|
|
<h2 class="modal-header-title">
|
|
<i class="gicon gicon-folder-new"></i>
|
|
<span class="p-l-1">Choose Dashboard Folder</span>
|
|
</h2>
|
|
|
|
<a class="modal-header-close" ng-click="ctrl.dismiss();">
|
|
<i class="fa fa-remove"></i>
|
|
</a>
|
|
</div>
|
|
|
|
<form name="ctrl.saveForm" ng-submit="ctrl.save()" class="modal-content folder-modal" novalidate>
|
|
<p>Move the {{ctrl.dashboards.length}} selected dashboards to the following folder:</p>
|
|
|
|
<div class="p-t-2">
|
|
<div class="gf-form">
|
|
<folder-picker
|
|
on-change="ctrl.onFolderChange"
|
|
label-class="width-7"
|
|
enable-create-new="true"
|
|
folder="ctrl.folder"
|
|
>
|
|
</folder-picker>
|
|
</div>
|
|
</div>
|
|
<div class="gf-form-button-row text-center">
|
|
<button
|
|
type="submit"
|
|
class="btn btn-primary"
|
|
ng-disabled="ctrl.saveForm.$invalid || !ctrl.isValidFolderSelection"
|
|
>
|
|
Move
|
|
</button>
|
|
<a class="btn-text" ng-click="ctrl.dismiss();">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|