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
f6a3b53f
Commit
f6a3b53f
authored
Jan 15, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(firefox): fixed js issue that made master build break in firefox
parent
01d47fb2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
public/app/core/services/dynamic_directive_srv.ts
+2
-2
public/app/features/annotations/query_editor.ts
+1
-1
public/app/features/datasources/config_view.ts
+1
-1
public/app/features/panel/query_editor.ts
+2
-2
No files found.
public/app/core/services/dynamic_directive_srv.ts
View file @
f6a3b53f
...
...
@@ -40,9 +40,9 @@ class DynamicDirectiveSrv {
restrict
:
'E'
,
scope
:
options
.
scope
,
link
:
(
scope
,
elem
,
attrs
)
=>
{
if
(
options
.
watch
)
{
if
(
options
.
watch
Path
)
{
let
childScope
=
null
;
scope
.
$watch
(
options
.
watch
,
()
=>
{
scope
.
$watch
(
options
.
watch
Path
,
()
=>
{
if
(
childScope
)
{
childScope
.
$destroy
();
}
...
...
public/app/features/annotations/query_editor.ts
View file @
f6a3b53f
...
...
@@ -9,7 +9,7 @@ function annotationsQueryEditor(dynamicDirectiveSrv) {
annotation
:
"="
,
datasource
:
"="
},
watch
:
"datasource.type"
,
watch
Path
:
"datasource.type"
,
directive
:
scope
=>
{
return
System
.
import
(
scope
.
datasource
.
meta
.
module
).
then
(
function
(
dsModule
)
{
return
{
...
...
public/app/features/datasources/config_view.ts
View file @
f6a3b53f
...
...
@@ -9,7 +9,7 @@ function dsConfigView(dynamicDirectiveSrv) {
dsMeta
:
"="
,
current
:
"="
},
watch
:
"dsMeta.module"
,
watch
Path
:
"dsMeta.module"
,
directive
:
scope
=>
{
return
System
.
import
(
scope
.
dsMeta
.
module
).
then
(
function
(
dsModule
)
{
return
{
...
...
public/app/features/panel/query_editor.ts
View file @
f6a3b53f
...
...
@@ -5,7 +5,7 @@ import angular from 'angular';
/** @ngInject */
function
metricsQueryEditor
(
dynamicDirectiveSrv
,
datasourceSrv
)
{
return
dynamicDirectiveSrv
.
create
({
watch
:
"panel.datasource"
,
watch
Path
:
"panel.datasource"
,
directive
:
scope
=>
{
let
datasource
=
scope
.
target
.
datasource
||
scope
.
panel
.
datasource
;
return
datasourceSrv
.
get
(
datasource
).
then
(
ds
=>
{
...
...
@@ -29,7 +29,7 @@ function metricsQueryEditor(dynamicDirectiveSrv, datasourceSrv) {
/** @ngInject */
function
metricsQueryOptions
(
dynamicDirectiveSrv
,
datasourceSrv
)
{
return
dynamicDirectiveSrv
.
create
({
watch
:
"panel.datasource"
,
watch
Path
:
"panel.datasource"
,
directive
:
scope
=>
{
return
datasourceSrv
.
get
(
scope
.
panel
.
datasource
).
then
(
ds
=>
{
return
System
.
import
(
ds
.
meta
.
module
).
then
(
dsModule
=>
{
...
...
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