Commit 3895294f by Torkel Ödegaard Committed by GitHub

Revert "Fix for leaving playlist mode"

parent 64a7d8ce
...@@ -8,7 +8,6 @@ import { appEvents } from 'app/core/app_events'; ...@@ -8,7 +8,6 @@ import { appEvents } from 'app/core/app_events';
import { PlaylistSrv } from 'app/features/playlist/playlist_srv'; import { PlaylistSrv } from 'app/features/playlist/playlist_srv';
// Components // Components
import { ClickOutsideWrapper } from 'app/core/components/ClickOutsideWrapper/ClickOutsideWrapper';
import { DashNavButton } from './DashNavButton'; import { DashNavButton } from './DashNavButton';
import { Tooltip } from '@grafana/ui'; import { Tooltip } from '@grafana/ui';
...@@ -174,28 +173,26 @@ export class DashNav extends PureComponent<Props> { ...@@ -174,28 +173,26 @@ export class DashNav extends PureComponent<Props> {
{this.renderDashboardTitleSearchButton()} {this.renderDashboardTitleSearchButton()}
{this.playlistSrv.isPlaying && ( {this.playlistSrv.isPlaying && (
<ClickOutsideWrapper onClick={this.onPlaylistStop}> <div className="navbar-buttons navbar-buttons--playlist">
<div className="navbar-buttons navbar-buttons--playlist"> <DashNavButton
<DashNavButton tooltip="Go to previous dashboard"
tooltip="Go to previous dashboard" classSuffix="tight"
classSuffix="tight" icon="fa fa-step-backward"
icon="fa fa-step-backward" onClick={this.onPlaylistPrev}
onClick={this.onPlaylistPrev} />
/> <DashNavButton
<DashNavButton tooltip="Stop playlist"
tooltip="Stop playlist" classSuffix="tight"
classSuffix="tight" icon="fa fa-stop"
icon="fa fa-stop" onClick={this.onPlaylistStop}
onClick={this.onPlaylistStop} />
/> <DashNavButton
<DashNavButton tooltip="Go to next dashboard"
tooltip="Go to next dashboard" classSuffix="tight"
classSuffix="tight" icon="fa fa-forward"
icon="fa fa-forward" onClick={this.onPlaylistNext}
onClick={this.onPlaylistNext} />
/> </div>
</div>
</ClickOutsideWrapper>
)} )}
<div className="navbar-buttons navbar-buttons--actions"> <div className="navbar-buttons navbar-buttons--actions">
......
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