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
bb681cd4
Commit
bb681cd4
authored
Feb 14, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10819_empty_dashboard_list'
parents
57e55954
b0fae012
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
public/app/core/components/manage_dashboards/manage_dashboards.html
+8
-1
public/app/core/components/manage_dashboards/manage_dashboards.ts
+1
-1
No files found.
public/app/core/components/manage_dashboards/manage_dashboards.html
View file @
bb681cd4
<div
class=
"dashboard-list"
>
<div
class=
"page-action-bar page-action-bar--narrow"
ng-hide=
"!ctrl.hasFilters && ctrl.sections.length === 0"
>
<div
class=
"page-action-bar page-action-bar--narrow"
ng-hide=
"
ctrl.folderId &&
!ctrl.hasFilters && ctrl.sections.length === 0"
>
<label
class=
"gf-form gf-form--grow gf-form--has-input-icon"
>
<input
type=
"text"
class=
"gf-form-input max-width-30"
placeholder=
"Find Dashboard by name"
tabindex=
"1"
give-focus=
"true"
ng-model=
"ctrl.query.query"
ng-model-options=
"{ debounce: 500 }"
spellcheck=
'false'
ng-change=
"ctrl.onQueryChange()"
/>
<i
class=
"gf-form-input-icon fa fa-search"
></i>
...
...
@@ -52,6 +52,12 @@
</em>
</div>
<div
class=
"search-results"
ng-show=
"!ctrl.folderId && !ctrl.hasFilters && ctrl.sections.length === 0"
>
<em
class=
"muted"
>
No dashboards found.
</em>
</div>
<div
class=
"search-results"
ng-show=
"ctrl.sections.length > 0"
>
<div
class=
"search-results-filter-row"
>
<gf-form-switch
...
...
@@ -103,6 +109,7 @@
/>
</div>
</div>
</div>
<div
ng-if=
"ctrl.canSave && ctrl.folderId && !ctrl.hasFilters && ctrl.sections.length === 0"
>
...
...
public/app/core/components/manage_dashboards/manage_dashboards.ts
View file @
bb681cd4
...
...
@@ -37,7 +37,7 @@ export class ManageDashboardsCtrl {
folderUid
?:
string
;
// if user can add new folders and/or add new dashboards
canSave
:
boolean
;
canSave
=
false
;
// if user has editor role or higher
isEditor
:
boolean
;
...
...
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