Merge branch 'release/2.1.0' into develop
authorChocobozzz <me@florianbigard.com>
Wed, 26 Feb 2020 14:26:02 +0000 (15:26 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 26 Feb 2020 14:26:02 +0000 (15:26 +0100)
1  2 
client/src/app/menu/menu.component.scss
client/src/standalone/videos/embed.ts

index d5b42a0259d065ac06423ddd527e5adb578f18b8,5213443fc54503a1baca3d775e18f72d3bd8ff59..e3bcbc010e20f6222d4e57690422a8c12966a719
@@@ -261,19 -261,22 +261,22 @@@ export class PeerTubeEmbed 
    }
  
    private async buildDock (videoInfo: VideoDetails, configResponse: Response) {
 -    if (this.controls) {
 -      // On webtorrent fallback, player may have been disposed
 -      if (!this.player.player_) return
 +    if (!this.controls) return
  
 -      const title = this.title ? videoInfo.name : undefined
++    // On webtorrent fallback, player may have been disposed
++    if (!this.player.player_) return
 -      const config: ServerConfig = await configResponse.json()
 -      const description = config.tracker.enabled && this.warningTitle
 -        ? '<span class="text">' + this.player.localize('Watching this video may reveal your IP address to others.') + '</span>'
 -        : undefined
 +    const title = this.title ? videoInfo.name : undefined
  
 -      this.player.dock({
 -        title,
 -        description
 -      })
 -    }
 +    const config: ServerConfig = await configResponse.json()
 +    const description = config.tracker.enabled && this.warningTitle
 +      ? '<span class="text">' + peertubeTranslate('Watching this video may reveal your IP address to others.') + '</span>'
 +      : undefined
 +
 +    this.player.dock({
 +      title,
 +      description
 +    })
    }
  
    private buildCSS () {