Skip to content

Grafana 6.3.5 - "Options" panel don't show #29

Open
@IgorNovozhilov

Description

This panel:

does not appear in Grafana 6.3.5.

But, if you add an event init-edit-mode into BosunIncidentListCtrl, the panel is displayed and works correctly.

Example this.events.on('init-edit-mode', this.onInitMetricsPanelEditMode.bind(this));:

export class BosunIncidentListCtrl extends MetricsPanelCtrl {
    constructor($scope, $injector, $rootScope, $window, datasourceSrv, templateSrv, utilSrv, backendSrv, dashboardSrv) {
        super($scope, $injector);
        var self = this;
        this.panelCtrl = $scope.ctrl;
        this.datasourceSrv = datasourceSrv;
        this.$window = $window;
        this.templateSrv = templateSrv;
        this.$rootScope = $rootScope;
        this.linkUrl = "";
        this.incidentList = [];
        this.refreshData = this.refreshData.bind(this);
        this.refreshData();
        this.utilSrv = utilSrv;
        this.bodyHTML = "";
        this.reversedFields = {};
        this.showHelp = 0;
        this.storeId = dashboardSrv.getCurrent().id + "-" + this.panel.id;
        backendSrv.get('/api/user').then(user => {
            this.user = user;
        });
        this.datasourceSrv.get(this.panel.datasource).then(datasource => {
            this.preRelease = datasource.preRelease;
        });
        this.events.on('init-edit-mode', this.onInitMetricsPanelEditMode.bind(this));
    }

You can make changes to the plugin for support Grafana 6.3.5?

Before
изображение
After
изображение

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions