mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PluginsList: Remove unused panel options (#24501)
* Remove unused panel options * satisfy ts
This commit is contained in:
parent
f13a15ae48
commit
2e69b86990
@ -1,40 +0,0 @@
|
||||
<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>
|
@ -1,7 +1,6 @@
|
||||
import _ from 'lodash';
|
||||
import { PanelCtrl } from '../../../features/panel/panel_ctrl';
|
||||
import { auto, IScope } from 'angular';
|
||||
import { PanelEvents } from '@grafana/data';
|
||||
import { ContextSrv } from '../../../core/services/context_srv';
|
||||
import { CoreEvents } from 'app/types';
|
||||
import { getBackendSrv } from '@grafana/runtime';
|
||||
@ -25,7 +24,6 @@ class PluginListCtrl extends PanelCtrl {
|
||||
_.defaults(this.panel, this.panelDefaults);
|
||||
|
||||
this.isAdmin = contextSrv.hasRole('Admin');
|
||||
this.events.on(PanelEvents.editModeInitialized, this.onInitEditMode.bind(this));
|
||||
this.pluginList = [];
|
||||
this.viewModel = [
|
||||
{ header: 'Installed Apps', list: [], type: 'app' },
|
||||
@ -36,10 +34,6 @@ class PluginListCtrl extends PanelCtrl {
|
||||
this.update();
|
||||
}
|
||||
|
||||
onInitEditMode() {
|
||||
this.addEditorTab('Options', 'public/app/plugins/panel/pluginlist/editor.html');
|
||||
}
|
||||
|
||||
gotoPlugin(plugin: { id: any }, evt: any) {
|
||||
if (evt) {
|
||||
evt.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user