Skip to content

Commit e80241b

Browse files
committed
ux(dashboard): minor tweaks
1 parent f1137e4 commit e80241b

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

public/app/core/services/keybindingSrv.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Mousetrap from 'mousetrap';
99

1010
export class KeybindingSrv {
1111
helpModal: boolean;
12+
bindings: any;
1213

1314
/** @ngInject */
1415
constructor(private $rootScope, private $modal, private $location, private contextSrv) {
@@ -29,7 +30,7 @@ export class KeybindingSrv {
2930
this.bind("g a", this.openAlerting);
3031
this.bind("g p", this.goToProfile);
3132
this.bind("s s", this.openSearchStarred);
32-
this.bind(['f'], this.openSearch);
33+
this.bind('f', this.openSearch);
3334
}
3435

3536
openSearchStarred() {
@@ -102,6 +103,7 @@ export class KeybindingSrv {
102103
scope.appEvent('quick-snapshot');
103104
});
104105

106+
// edit panel
105107
this.bind('e', () => {
106108
if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) {
107109
this.$rootScope.appEvent('panel-change-view', {
@@ -113,6 +115,7 @@ export class KeybindingSrv {
113115
}
114116
});
115117

118+
// view panel
116119
this.bind('v', () => {
117120
if (dashboard.meta.focusPanelId) {
118121
this.$rootScope.appEvent('panel-change-view', {
@@ -124,6 +127,7 @@ export class KeybindingSrv {
124127
}
125128
});
126129

130+
// delete panel
127131
this.bind('d', () => {
128132
if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) {
129133
var panelInfo = dashboard.getPanelInfoById(dashboard.meta.focusPanelId);

public/app/features/dashboard/row/add_panel.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import _ from 'lodash';
44

55
import config from 'app/core/config';
66
import {coreModule, appEvents} from 'app/core/core';
7-
// import VirtualScroll from 'virtual-scroll';
8-
// console.log(VirtualScroll);
97

108
export class AddPanelCtrl {
119
row: any;

public/app/features/dashboard/row/row.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
<span ng-class="ctrl.row.titleSize">{{ctrl.row.title | interpolateTemplateVars:this}}</span>
99
</a>
1010

11-
<div class="dash-row-header-spacer">
12-
</div>
13-
1411
<div class="dash-row-header-actions">
1512
<a class="pointer dash-row-header-action-add-panel" ng-click="ctrl.showAddPanel()" ng-class="{active: ctrl.dropView===1}">
1613
Add Panel

public/sass/components/_row.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,13 @@ a.dash-row-header-actions--tight {
171171

172172
.add-panel-panels-scroll {
173173
width: 100%;
174-
overflow: hidden;
174+
overflow: auto;
175+
176+
&::-webkit-scrollbar {
177+
display: none
178+
}
179+
180+
-ms-overflow-style: none;
175181
}
176182

177183
.add-panel-panels {

0 commit comments

Comments
 (0)