mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
ux: minor fixes
This commit is contained in:
parent
d87653b079
commit
1aa5ed0cde
@ -174,6 +174,7 @@ export function dashGridItem($timeout, $rootScope) {
|
||||
if (panel.id !== payload.panelId) {
|
||||
return;
|
||||
}
|
||||
gridCtrl.gridstack.locked(element, false);
|
||||
element.removeClass('panel-fullscreen');
|
||||
}, scope);
|
||||
|
||||
|
@ -218,15 +218,14 @@ export class PanelCtrl {
|
||||
}
|
||||
|
||||
replacePanel(newPanel, oldPanel) {
|
||||
var row = this.row;
|
||||
var index = _.indexOf(this.row.panels, oldPanel);
|
||||
this.row.panels.splice(index, 1);
|
||||
var index = _.indexOf(this.dashboard.panels, oldPanel);
|
||||
this.dashboard.panels.splice(index, 1);
|
||||
|
||||
// adding it back needs to be done in next digest
|
||||
this.$timeout(() => {
|
||||
newPanel.id = oldPanel.id;
|
||||
newPanel.span = oldPanel.span;
|
||||
this.row.panels.splice(index, 0, newPanel);
|
||||
newPanel.width = oldPanel.width;
|
||||
this.dashboard.panels.splice(index, 0, newPanel);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ class GettingStartedPanelCtrl extends PanelCtrl {
|
||||
}
|
||||
|
||||
dismiss() {
|
||||
this.row.removePanel(this.panel, false);
|
||||
this.dashboard.removePanel(this.panel, false);
|
||||
|
||||
this.backendSrv.request({
|
||||
method: 'PUT',
|
||||
|
@ -225,6 +225,9 @@ div.flot-text {
|
||||
|
||||
.panel-fullscreen {
|
||||
display: block !important;
|
||||
> .ui-resizable-handle {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user