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
2e69b869
Unverified
Commit
2e69b869
authored
May 11, 2020
by
Dominik Prokop
Committed by
GitHub
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PluginsList: Remove unused panel options (#24501)
* Remove unused panel options * satisfy ts
parent
f13a15ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
46 deletions
+0
-46
public/app/plugins/panel/pluginlist/editor.html
+0
-40
public/app/plugins/panel/pluginlist/module.ts
+0
-6
No files found.
public/app/plugins/panel/pluginlist/editor.html
deleted
100644 → 0
View file @
f13a15ae
<div
class=
"gf-form-group"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-10"
>
Mode
</span>
<div
class=
"gf-form-select-wrapper max-width-10"
>
<select
class=
"gf-form-input"
ng-model=
"ctrl.panel.mode"
ng-options=
"f for f in ctrl.modes"
ng-change=
"ctrl.refresh()"
></select>
</div>
</div>
<div
class=
"gf-form"
ng-show=
"ctrl.panel.mode === 'recently viewed'"
>
<span
class=
"gf-form-label"
>
<icon
class=
"grafana-tip ng-scope"
name=
"'question-circle'"
bs-tooltip=
"'WARNING: This list will be cleared when clearing browser cache'"
data-original-title=
""
title=
""
></icon>
</span>
</div>
</div>
<div
class=
"gf-form-inline"
ng-if=
"ctrl.panel.mode === 'search'"
></div>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-10"
>
Search options
</span>
<span
class=
"gf-form-label"
>
Query
</span>
<input
type=
"text"
class=
"gf-form-input"
placeholder=
"title query"
ng-model=
"ctrl.panel.query"
ng-change=
"ctrl.refresh()"
ng-model-onblur
>
</div>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label"
>
Tags
</span>
<bootstrap-tagsinput
ng-model=
"ctrl.panel.tags"
tagclass=
"label label-tag"
placeholder=
"add tags"
on-tags-updated=
"ctrl.refresh()"
>
</bootstrap-tagsinput>
</div>
</div>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-10"
>
Limit number to
</span>
<input
class=
"gf-form-input"
type=
"number"
ng-model=
"ctrl.panel.limit"
ng-model-onblur
ng-change=
"ctrl.refresh()"
>
</div>
</div>
</div>
public/app/plugins/panel/pluginlist/module.ts
View file @
2e69b869
import
_
from
'lodash'
;
import
_
from
'lodash'
;
import
{
PanelCtrl
}
from
'../../../features/panel/panel_ctrl'
;
import
{
PanelCtrl
}
from
'../../../features/panel/panel_ctrl'
;
import
{
auto
,
IScope
}
from
'angular'
;
import
{
auto
,
IScope
}
from
'angular'
;
import
{
PanelEvents
}
from
'@grafana/data'
;
import
{
ContextSrv
}
from
'../../../core/services/context_srv'
;
import
{
ContextSrv
}
from
'../../../core/services/context_srv'
;
import
{
CoreEvents
}
from
'app/types'
;
import
{
CoreEvents
}
from
'app/types'
;
import
{
getBackendSrv
}
from
'@grafana/runtime'
;
import
{
getBackendSrv
}
from
'@grafana/runtime'
;
...
@@ -25,7 +24,6 @@ class PluginListCtrl extends PanelCtrl {
...
@@ -25,7 +24,6 @@ class PluginListCtrl extends PanelCtrl {
_
.
defaults
(
this
.
panel
,
this
.
panelDefaults
);
_
.
defaults
(
this
.
panel
,
this
.
panelDefaults
);
this
.
isAdmin
=
contextSrv
.
hasRole
(
'Admin'
);
this
.
isAdmin
=
contextSrv
.
hasRole
(
'Admin'
);
this
.
events
.
on
(
PanelEvents
.
editModeInitialized
,
this
.
onInitEditMode
.
bind
(
this
));
this
.
pluginList
=
[];
this
.
pluginList
=
[];
this
.
viewModel
=
[
this
.
viewModel
=
[
{
header
:
'Installed Apps'
,
list
:
[],
type
:
'app'
},
{
header
:
'Installed Apps'
,
list
:
[],
type
:
'app'
},
...
@@ -36,10 +34,6 @@ class PluginListCtrl extends PanelCtrl {
...
@@ -36,10 +34,6 @@ class PluginListCtrl extends PanelCtrl {
this
.
update
();
this
.
update
();
}
}
onInitEditMode
()
{
this
.
addEditorTab
(
'Options'
,
'public/app/plugins/panel/pluginlist/editor.html'
);
}
gotoPlugin
(
plugin
:
{
id
:
any
},
evt
:
any
)
{
gotoPlugin
(
plugin
:
{
id
:
any
},
evt
:
any
)
{
if
(
evt
)
{
if
(
evt
)
{
evt
.
stopPropagation
();
evt
.
stopPropagation
();
...
...
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