diff --git a/public/app/core/components/grafana_app.ts b/public/app/core/components/grafana_app.ts index 6630fbe9517..ee2e7ef4422 100644 --- a/public/app/core/components/grafana_app.ts +++ b/public/app/core/components/grafana_app.ts @@ -116,6 +116,16 @@ export function grafanaAppDirective(playlistSrv, contextSrv) { return; } + // for stuff that animates, slides out etc, clicking it needs to + // hide it right away + var clickAutoHide = target.closest('[data-click-hide]'); + if (clickAutoHide.length) { + clickAutoHide.toggleClass('transition-hide'); + setTimeout(function() { + clickAutoHide.toggleClass('transition-hide'); + }, 1000); + } + if (target.parents('.dash-playlist-actions').length === 0) { playlistSrv.stop(); } diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index 83b03c9728b..e9f234ff68a 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -59,7 +59,7 @@ export class KeybindingSrv { } showHelpModal() { - appEvents.emit('show-modal', {templateHtml: ''}); + appEvents.emit('show-modal', {templateHtml: ''}); } bind(keyArg, fn) { diff --git a/public/app/features/dashboard/row/row.html b/public/app/features/dashboard/row/row.html index 7e282bfd55e..fe4a79ccc57 100644 --- a/public/app/features/dashboard/row/row.html +++ b/public/app/features/dashboard/row/row.html @@ -1,10 +1,9 @@ -
-