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
5fced6e9
Commit
5fced6e9
authored
Feb 12, 2018
by
Patrick O'Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added buttons and text to empty dashboard list
parent
12a6de74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
public/app/core/components/manage_dashboards/manage_dashboards.html
+7
-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 @
5fced6e9
<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.canSave && 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>
...
...
@@ -105,6 +105,12 @@
</div>
</div>
<div
class=
"search-results"
ng-show=
"!ctrl.canSave && !ctrl.hasFilters && ctrl.sections.length === 0"
>
<em
class=
"muted"
>
This org has no dashboards or folders.
</em>
</div>
<div
ng-if=
"ctrl.canSave && ctrl.folderId && !ctrl.hasFilters && ctrl.sections.length === 0"
>
<empty-list-cta
model=
"{
title: 'This folder doesn\'t have any dashboards yet',
...
...
public/app/core/components/manage_dashboards/manage_dashboards.ts
View file @
5fced6e9
...
...
@@ -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