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
28f4f3a8
Commit
28f4f3a8
authored
Mar 12, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(datasource edit): Editing datasources broken earlier today, fixes #4343
parent
d2b0bad1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
public/app/features/plugins/ds_edit_ctrl.ts
+2
-1
public/app/features/plugins/partials/ds_edit.html
+7
-7
No files found.
public/app/features/plugins/ds_edit_ctrl.ts
View file @
28f4f3a8
...
...
@@ -24,6 +24,7 @@ export class DataSourceEditCtrl {
datasourceMeta
:
any
;
tabIndex
:
number
;
hasDashboards
:
boolean
;
editForm
:
any
;
/** @ngInject */
constructor
(
...
...
@@ -114,7 +115,7 @@ export class DataSourceEditCtrl {
}
saveChanges
(
test
)
{
if
(
!
this
.
$scope
.
editForm
.
$valid
)
{
if
(
!
this
.
editForm
.
$valid
)
{
return
;
}
...
...
public/app/features/plugins/partials/ds_edit.html
View file @
28f4f3a8
...
...
@@ -25,7 +25,7 @@
<div
ng-if=
"ctrl.tabIndex === 0"
class=
"tab-content"
>
<form
name=
"editForm"
>
<form
name=
"
ctrl.
editForm"
>
<div
class=
"gf-form-group"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-7"
>
Name
</span>
...
...
@@ -52,12 +52,12 @@
</plugin-component>
</rebuild-on-change>
<div
ng-if=
"testing"
style=
"margin-top: 25px"
>
<h5
ng-show=
"!testing.done"
>
Testing....
<i
class=
"fa fa-spiner fa-spin"
></i></h5>
<h5
ng-show=
"testing.done"
>
Test results
</h5>
<div
class=
"alert-{{testing.status}} alert"
>
<div
class=
"alert-title"
>
{{testing.title}}
</div>
<div
ng-bind=
'testing.message'
></div>
<div
ng-if=
"
ctrl.
testing"
style=
"margin-top: 25px"
>
<h5
ng-show=
"!
ctrl.
testing.done"
>
Testing....
<i
class=
"fa fa-spiner fa-spin"
></i></h5>
<h5
ng-show=
"
ctrl.
testing.done"
>
Test results
</h5>
<div
class=
"alert-{{
ctrl.
testing.status}} alert"
>
<div
class=
"alert-title"
>
{{
ctrl.
testing.title}}
</div>
<div
ng-bind=
'
ctrl.
testing.message'
></div>
</div>
</div>
...
...
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