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
3c3d3c9e
Commit
3c3d3c9e
authored
Jan 28, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(): fixed share modal
parent
34141363
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
10 deletions
+17
-10
public/app/features/dashboard/shareModalCtrl.js
+1
-1
public/app/features/panel/panel_ctrl.ts
+12
-1
public/app/features/panel/partials/soloPanel.html
+2
-1
public/app/features/panel/solo_panel_ctrl.js
+1
-6
public/app/plugins/panel/dashlist/editor.html
+1
-1
No files found.
public/app/features/dashboard/shareModalCtrl.js
View file @
3c3d3c9e
...
...
@@ -26,7 +26,7 @@ function (angular, _, require, config) {
$scope
.
modalTitle
=
'Share Dashboard'
;
}
if
(
!
$scope
.
dashboard
M
eta
.
isSnapshot
)
{
if
(
!
$scope
.
dashboard
.
m
eta
.
isSnapshot
)
{
$scope
.
tabs
.
push
({
title
:
'Snapshot sharing'
,
src
:
'shareSnapshot.html'
});
}
...
...
public/app/features/panel/panel_ctrl.ts
View file @
3c3d3c9e
...
...
@@ -100,7 +100,7 @@ export class PanelCtrl {
menu
.
push
({
text
:
'View'
,
click
:
'ctrl.viewPanel(); dismiss();'
});
menu
.
push
({
text
:
'Edit'
,
click
:
'ctrl.editPanel(); dismiss();'
,
role
:
'Editor'
});
menu
.
push
({
text
:
'Duplicate'
,
click
:
'ctrl.duplicate()'
,
role
:
'Editor'
});
menu
.
push
({
text
:
'Share'
,
click
:
'ctrl.share(); dismiss();'
});
menu
.
push
({
text
:
'Share'
,
click
:
'ctrl.share
Panel
(); dismiss();'
});
return
menu
;
}
...
...
@@ -165,4 +165,15 @@ export class PanelCtrl {
this
.
row
.
panels
.
splice
(
index
,
0
,
newPanel
);
});
}
sharePanel
()
{
var
shareScope
=
this
.
$scope
.
$new
();
shareScope
.
panel
=
this
.
panel
;
shareScope
.
dashboard
=
this
.
dashboard
;
this
.
publishAppEvent
(
'show-modal'
,
{
src
:
'./app/features/dashboard/partials/shareModal.html'
,
scope
:
shareScope
});
}
}
public/app/features/panel/partials/soloPanel.html
View file @
3c3d3c9e
...
...
@@ -2,7 +2,8 @@
<div
class=
"row-fluid"
>
<div
class=
"span12"
>
<div
class=
"panel nospace"
ng-if=
"panel"
style=
"width: 100%"
>
<panel-loader
type=
"panel.type"
ng-cloak
></panel-loader>
<panel-loader
dashboard=
"dashboard"
row=
"row"
panel=
"panel"
>
</panel-loader>
</div>
</div>
</div>
public/app/features/panel/solo_panel_ctrl.js
View file @
3c3d3c9e
...
...
@@ -39,13 +39,8 @@ function (angular, $) {
}
$scope
.
panel
.
span
=
12
;
$scope
.
dashboardViewState
=
{
registerPanel
:
function
()
{
},
state
:
{}};
};
if
(
!
$scope
.
skipAutoInit
)
{
$scope
.
init
();
}
$scope
.
init
();
});
});
public/app/plugins/panel/dashlist/editor.html
View file @
3c3d3c9e
...
...
@@ -13,7 +13,7 @@
<div
class=
"clearfix"
></div>
</div>
</div>
<div
class=
"section"
style=
"margin-bottom: 20px"
ng-if=
"panel.mode === 'search'"
>
<div
class=
"section"
style=
"margin-bottom: 20px"
ng-if=
"
ctrl.
panel.mode === 'search'"
>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 110px"
>
...
...
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