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
a37f1b77
Commit
a37f1b77
authored
Dec 11, 2017
by
Daniel Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashfolders: new dashboard with folder selected
Fixes #10133
parent
795d9c03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
public/app/core/components/manage_dashboards/manage_dashboards.html
+2
-2
public/app/core/routes/dashboard_loaders.ts
+3
-2
No files found.
public/app/core/components/manage_dashboards/manage_dashboards.html
View file @
a37f1b77
...
...
@@ -4,7 +4,7 @@
<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()"
/>
</div>
<div
class=
"page-action-bar__spacer"
></div>
<a
class=
"btn btn-success"
href=
"/dashboard/new"
>
<a
class=
"btn btn-success"
href=
"/dashboard/new
?folderId={{ctrl.folderId}}
"
>
<i
class=
"fa fa-plus"
></i>
Dashboard
</a>
...
...
@@ -88,7 +88,7 @@
<empty-list-cta
model=
"{
title: 'This folder doesn\'t have any dashboards yet',
buttonIcon: 'gicon gicon-dashboard-new',
buttonLink: '/dashboard/new',
buttonLink: '/dashboard/new
?folderId={{ctrl.folderId}}
',
buttonTitle: 'Create Dashboard',
proTip: 'You can bulk move dashboards into this folder from the main dashboard list.',
proTipLink: 'http://docs.grafana.org/administration/provisioning/#datasources?utm_source=grafana_ds_list',
...
...
public/app/core/routes/dashboard_loaders.ts
View file @
a37f1b77
...
...
@@ -31,7 +31,7 @@ export class LoadDashboardCtrl {
export
class
NewDashboardCtrl
{
/** @ngInject */
constructor
(
$scope
)
{
constructor
(
$scope
,
$routeParams
)
{
$scope
.
initDashboard
({
meta
:
{
canStar
:
false
,
canShare
:
false
,
isNew
:
true
},
dashboard
:
{
...
...
@@ -42,7 +42,8 @@ export class NewDashboardCtrl {
gridPos
:
{
x
:
0
,
y
:
0
,
w
:
12
,
h
:
9
},
title
:
'Panel Title'
,
}
]
],
folderId
:
Number
(
$routeParams
.
folderId
)
},
},
$scope
);
}
...
...
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