Commit 389dd12a by Carl Bergquist

Merge pull request #3779 from bergquist/playlist_stop_playing

feat(playlist): clicks outside control stops playlist
parents 1d4803cf 4a54edd8
...@@ -139,7 +139,7 @@ export class GrafanaCtrl { ...@@ -139,7 +139,7 @@ export class GrafanaCtrl {
} }
} }
export function grafanaAppDirective() { export function grafanaAppDirective(playlistSrv) {
return { return {
restrict: 'E', restrict: 'E',
controller: GrafanaCtrl, controller: GrafanaCtrl,
...@@ -170,6 +170,10 @@ export function grafanaAppDirective() { ...@@ -170,6 +170,10 @@ export function grafanaAppDirective() {
return; return;
} }
if (target.parents('.dash-playlist-actions').length === 0) {
playlistSrv.stop();
}
// hide search // hide search
if (elem.find('.search-container').length > 0) { if (elem.find('.search-container').length > 0) {
if (target.parents('.search-container').length === 0) { if (target.parents('.search-container').length === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment