Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IgorNovozhilov opened this issue Sep 17, 2019 · 0 comments · May be fixed by #44
Open

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

IgorNovozhilov opened this issue Sep 17, 2019 · 0 comments · May be fixed by #44

Comments

@IgorNovozhilov
Copy link

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
изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant