Always copy full actor handle in video-channels view
This commit is contained in:
parent
5ed19b4b8b
commit
288c78eaae
|
@ -3,8 +3,8 @@ import { ActivatedRoute } from '@angular/router'
|
||||||
import { AccountService } from '@app/shared/account/account.service'
|
import { AccountService } from '@app/shared/account/account.service'
|
||||||
import { Account } from '@app/shared/account/account.model'
|
import { Account } from '@app/shared/account/account.model'
|
||||||
import { RestExtractor, UserService } from '@app/shared'
|
import { RestExtractor, UserService } from '@app/shared'
|
||||||
import { catchError, distinctUntilChanged, first, map, switchMap, tap } from 'rxjs/operators'
|
import { catchError, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators'
|
||||||
import { forkJoin, Subscription } from 'rxjs'
|
import { Subscription } from 'rxjs'
|
||||||
import { AuthService, Notifier, RedirectService } from '@app/core'
|
import { AuthService, Notifier, RedirectService } from '@app/core'
|
||||||
import { User, UserRight } from '../../../../shared'
|
import { User, UserRight } from '../../../../shared'
|
||||||
import { I18n } from '@ngx-translate/i18n-polyfill'
|
import { I18n } from '@ngx-translate/i18n-polyfill'
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="actor-display-name">{{ videoChannel.displayName }}</div>
|
<div class="actor-display-name">{{ videoChannel.displayName }}</div>
|
||||||
<div class="actor-name">
|
<div class="actor-name">
|
||||||
<span>{{ videoChannel.nameWithHost }}</span>
|
<span>{{ videoChannel.nameWithHost }}</span>
|
||||||
<button [cdkCopyToClipboard]="videoChannel.nameWithHost" (click)="activateCopiedMessage()"
|
<button [cdkCopyToClipboard]="videoChannel.nameWithHostForced" (click)="activateCopiedMessage()"
|
||||||
class="btn btn-outline-secondary btn-sm copy-button"
|
class="btn btn-outline-secondary btn-sm copy-button"
|
||||||
>
|
>
|
||||||
<span class="glyphicon glyphicon-copy"></span>
|
<span class="glyphicon glyphicon-copy"></span>
|
||||||
|
|
|
@ -8,6 +8,7 @@ export class VideoChannel extends Actor implements ServerVideoChannel {
|
||||||
support: string
|
support: string
|
||||||
isLocal: boolean
|
isLocal: boolean
|
||||||
nameWithHost: string
|
nameWithHost: string
|
||||||
|
nameWithHostForced: string
|
||||||
ownerAccount?: Account
|
ownerAccount?: Account
|
||||||
ownerBy?: string
|
ownerBy?: string
|
||||||
ownerAvatarUrl?: string
|
ownerAvatarUrl?: string
|
||||||
|
@ -20,6 +21,7 @@ export class VideoChannel extends Actor implements ServerVideoChannel {
|
||||||
this.support = hash.support
|
this.support = hash.support
|
||||||
this.isLocal = hash.isLocal
|
this.isLocal = hash.isLocal
|
||||||
this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
|
this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
|
||||||
|
this.nameWithHostForced = Actor.CREATE_BY_STRING(this.name, this.host, true)
|
||||||
|
|
||||||
if (hash.ownerAccount) {
|
if (hash.ownerAccount) {
|
||||||
this.ownerAccount = hash.ownerAccount
|
this.ownerAccount = hash.ownerAccount
|
||||||
|
|
Loading…
Reference in New Issue