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
cfd755eb
Commit
cfd755eb
authored
Dec 12, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated new dashboard folder
parent
271c597c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
35 deletions
+35
-35
public/app/features/dashboard/create_folder_ctrl.ts
+1
-1
public/app/features/dashboard/partials/create_folder.html
+34
-34
No files found.
public/app/features/dashboard/create_folder_ctrl.ts
View file @
cfd755eb
...
...
@@ -7,7 +7,7 @@ export class CreateFolderCtrl {
titleTouched
=
false
;
constructor
(
private
backendSrv
,
private
$location
,
navModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'
create'
,
'folder'
);
this
.
navModel
=
navModelSrv
.
getNav
(
'
dashboards'
,
'manage-dashboards'
,
0
);
}
create
()
{
...
...
public/app/features/dashboard/partials/create_folder.html
View file @
cfd755eb
...
...
@@ -2,42 +2,42 @@
<div
class=
"page-container page-body"
ng-cloak
>
<form
name=
"ctrl.saveForm"
ng-submit=
"ctrl.create()"
class=
"modal-content folder-modal"
novalidate
>
<div
class=
"gf-form-group"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-form--grow"
>
<label
class=
"gf-form-label width-10"
>
Folder name
</label>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.title"
give-focus=
"true"
ng-change=
"ctrl.titleChanged()"
ng-model-options=
"{ debounce: 400 }"
ng-class=
"{'validation-error': ctrl.nameExists || !ctrl.dash.title}"
>
<label
class=
"gf-form-label text-success"
ng-if=
"!ctrl.nameExists && ctrl.title"
>
<i
class=
"fa fa-check"
></i>
</label>
</div>
</div>
<h3
class=
"page-sub-heading"
>
New Dashboard Folder
</h3>
<div
class=
"gf-form-inline"
ng-if=
"ctrl.nameExists"
>
<div
class=
"gf-form offset-width-10 gf-form--grow"
>
<label
class=
"gf-form-label text-warning gf-form-label--grow"
>
<i
class=
"fa fa-warning"
></i>
A Folder or Dashboard with the same name already exists
</label>
</div>
</div>
<form
name=
"ctrl.saveForm"
ng-submit=
"ctrl.create()"
novalidate
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-form--grow"
>
<label
class=
"gf-form-label width-10"
>
Folder name
</label>
<input
type=
"text"
class=
"gf-form-input max-width-25"
ng-model=
"ctrl.title"
give-focus=
"true"
ng-change=
"ctrl.titleChanged()"
ng-model-options=
"{ debounce: 400 }"
ng-class=
"{'validation-error': ctrl.nameExists || !ctrl.dash.title}"
>
<label
class=
"gf-form-label text-success"
ng-if=
"!ctrl.nameExists && ctrl.title"
>
<i
class=
"fa fa-check"
></i>
</label>
</div>
</div>
<div
class=
"gf-form-inline"
ng-if=
"!ctrl.title && ctrl.titleTouched"
>
<div
class=
"gf-form offset-width-10 gf-form--grow"
>
<label
class=
"gf-form-label text-warning gf-form-label--grow"
>
<i
class=
"fa fa-warning"
></i>
A Folder should have a name
</label>
</div>
</div>
</div>
<div
class=
"gf-form-inline"
ng-if=
"ctrl.nameExists"
>
<div
class=
"gf-form offset-width-10 gf-form--grow"
>
<label
class=
"gf-form-label text-warning gf-form-label--grow"
>
<i
class=
"fa fa-warning"
></i>
A Folder or Dashboard with the same name already exists
</label>
</div>
</div>
<div
class=
"gf-form-button-row"
>
<button
type=
"submit"
class=
"btn btn-success width-12"
ng-disabled=
"ctrl.nameExists || ctrl.title.length === 0"
>
<i
class=
"fa fa-save"
></i>
Create
</button>
</div>
</form>
<div
class=
"gf-form-inline"
ng-if=
"!ctrl.title && ctrl.titleTouched"
>
<div
class=
"gf-form offset-width-10 gf-form--grow"
>
<label
class=
"gf-form-label text-warning gf-form-label--grow"
>
<i
class=
"fa fa-warning"
></i>
A Folder should have a name
</label>
</div>
</div>
<div
class=
"gf-form-button-row"
>
<button
type=
"submit"
class=
"btn btn-success width-12"
ng-disabled=
"ctrl.nameExists || ctrl.title.length === 0"
>
<i
class=
"fa fa-save"
></i>
Create
</button>
</div>
</form>
</div>
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