aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/account/account.model.ts
diff options
context:
space:
mode:
authorNassim Bounouas <NassimBounouas@users.noreply.github.com>2019-06-19 14:57:39 +0200
committerChocobozzz <me@florianbigard.com>2019-06-19 14:57:39 +0200
commite379f813d45c4a83442aa13268d351e2605a7a01 (patch)
treec912ae77b981574c2e859bc5740ca2180f61f9b6 /client/src/app/shared/account/account.model.ts
parentb6a1dd4d1b3b0032f8b968e72cbd074f646e8827 (diff)
downloadPeerTube-e379f813d45c4a83442aa13268d351e2605a7a01.tar.gz
PeerTube-e379f813d45c4a83442aa13268d351e2605a7a01.tar.zst
PeerTube-e379f813d45c4a83442aa13268d351e2605a7a01.zip
Feature/completeUsernameCopy (#1913)
* #1843 Copy icon added to account page to copy Username * #1843 Store an account name with the host forced and bind it to copy button * #1843 tslint correction * #1843 copy to clipboard replaced by ngx-clipboard
Diffstat (limited to 'client/src/app/shared/account/account.model.ts')
-rw-r--r--client/src/app/shared/account/account.model.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/shared/account/account.model.ts b/client/src/app/shared/account/account.model.ts
index c5cd2051c..61f09fc06 100644
--- a/client/src/app/shared/account/account.model.ts
+++ b/client/src/app/shared/account/account.model.ts
@@ -5,6 +5,7 @@ export class Account extends Actor implements ServerAccount {
5 displayName: string 5 displayName: string
6 description: string 6 description: string
7 nameWithHost: string 7 nameWithHost: string
8 nameWithHostForced: string
8 mutedByUser: boolean 9 mutedByUser: boolean
9 mutedByInstance: boolean 10 mutedByInstance: boolean
10 mutedServerByUser: boolean 11 mutedServerByUser: boolean
@@ -19,6 +20,7 @@ export class Account extends Actor implements ServerAccount {
19 this.description = hash.description 20 this.description = hash.description
20 this.userId = hash.userId 21 this.userId = hash.userId
21 this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host) 22 this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
23 this.nameWithHostForced = Actor.CREATE_BY_STRING(this.name, this.host, true)
22 24
23 this.mutedByUser = false 25 this.mutedByUser = false
24 this.mutedByInstance = false 26 this.mutedByInstance = false