diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 11:06:32 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 11:06:32 +0100 |
commit | fada8d75550dc7365f7e18ee1569b9406251d660 (patch) | |
tree | db9dc01c18693824f83fce5020f4c1f3ae7c0865 /client/src/app/shared/account | |
parent | 492fd28167f770d79a430fc57451b5a9e075d8e7 (diff) | |
parent | c2830fa8f84f61462098bf36add824f89436dfa9 (diff) | |
download | PeerTube-fada8d75550dc7365f7e18ee1569b9406251d660.tar.gz PeerTube-fada8d75550dc7365f7e18ee1569b9406251d660.tar.zst PeerTube-fada8d75550dc7365f7e18ee1569b9406251d660.zip |
Merge branch 'feature/design' into develop
Diffstat (limited to 'client/src/app/shared/account')
-rw-r--r-- | client/src/app/shared/account/account.model.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/app/shared/account/account.model.ts b/client/src/app/shared/account/account.model.ts new file mode 100644 index 000000000..0b008188a --- /dev/null +++ b/client/src/app/shared/account/account.model.ts | |||
@@ -0,0 +1,20 @@ | |||
1 | import { Account as ServerAccount } from '../../../../../shared/models/accounts/account.model' | ||
2 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' | ||
3 | |||
4 | export class Account implements ServerAccount { | ||
5 | id: number | ||
6 | uuid: string | ||
7 | name: string | ||
8 | host: string | ||
9 | followingCount: number | ||
10 | followersCount: number | ||
11 | createdAt: Date | ||
12 | updatedAt: Date | ||
13 | avatar: Avatar | ||
14 | |||
15 | static GET_ACCOUNT_AVATAR_PATH (account: Account) { | ||
16 | if (account && account.avatar) return account.avatar.path | ||
17 | |||
18 | return API_URL + '/client/assets/images/default-avatar.png' | ||
19 | } | ||
20 | } | ||