Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4846125e
Commit
4846125e
authored
Dec 19, 2017
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashfolders: support creating new folder when moving dashboards. #10197
parent
2d0f5f06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
public/app/features/dashboard/move_to_folder_modal/move_to_folder.html
+4
-1
public/app/features/dashboard/move_to_folder_modal/move_to_folder.ts
+9
-0
No files found.
public/app/features/dashboard/move_to_folder_modal/move_to_folder.html
View file @
4846125e
...
@@ -18,12 +18,15 @@
...
@@ -18,12 +18,15 @@
<folder-picker
<folder-picker
on-load=
"ctrl.onFolderChange($folder)"
on-load=
"ctrl.onFolderChange($folder)"
on-change=
"ctrl.onFolderChange($folder)"
on-change=
"ctrl.onFolderChange($folder)"
enter-folder-creation=
"ctrl.onEnterFolderCreation()"
exit-folder-creation=
"ctrl.onExitFolderCreation()"
enable-create-new=
"true"
label-class=
"width-7"
>
label-class=
"width-7"
>
</folder-picker>
</folder-picker>
</div>
</div>
</div>
</div>
<div
class=
"gf-form-button-row text-center"
>
<div
class=
"gf-form-button-row text-center"
>
<button
type=
"submit"
class=
"btn btn-success"
ng-disabled=
"ctrl.saveForm.$invalid"
>
Move
</button>
<button
type=
"submit"
class=
"btn btn-success"
ng-disabled=
"ctrl.saveForm.$invalid
|| !ctrl.isValidFolderSelection
"
>
Move
</button>
<a
class=
"btn-text"
ng-click=
"ctrl.dismiss();"
>
Cancel
</a>
<a
class=
"btn-text"
ng-click=
"ctrl.dismiss();"
>
Cancel
</a>
</div>
</div>
</form>
</form>
...
...
public/app/features/dashboard/move_to_folder_modal/move_to_folder.ts
View file @
4846125e
...
@@ -6,6 +6,7 @@ export class MoveToFolderCtrl {
...
@@ -6,6 +6,7 @@ export class MoveToFolderCtrl {
folder
:
any
;
folder
:
any
;
dismiss
:
any
;
dismiss
:
any
;
afterSave
:
any
;
afterSave
:
any
;
isValidFolderSelection
=
true
;
/** @ngInject */
/** @ngInject */
constructor
(
private
backendSrv
)
{}
constructor
(
private
backendSrv
)
{}
...
@@ -39,6 +40,14 @@ export class MoveToFolderCtrl {
...
@@ -39,6 +40,14 @@ export class MoveToFolderCtrl {
return
this
.
afterSave
();
return
this
.
afterSave
();
});
});
}
}
onEnterFolderCreation
()
{
this
.
isValidFolderSelection
=
false
;
}
onExitFolderCreation
()
{
this
.
isValidFolderSelection
=
true
;
}
}
}
export
function
moveToFolderModal
()
{
export
function
moveToFolderModal
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment