aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/my-account/my-account-settings/my-account-settings.component.html
blob: 0fcc7782eabba17f90c94057ac4b1947da6ceb1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<div class="user">
  <img [src]="user.accountAvatarUrl" alt="Avatar" />

  <div class="user-info">
    <div class="user-info-names">
      <div class="user-info-display-name">{{ user.account.displayName }}</div>
      <div class="user-info-username">{{ user.username }}</div>
    </div>
    <div class="user-info-followers">{{ user.account?.followersCount }} subscribers</div>
  </div>
</div>

<div class="button-file">
  <span>Change your avatar</span>
  <input #avatarfileInput type="file" name="avatarfile" id="avatarfile" [accept]="avatarExtensions" (change)="changeAvatar()" />
</div>
<div class="file-max-size">(extensions: {{ avatarExtensions }}, max size: {{ maxAvatarSize | bytes }})</div>

<div class="user-quota">
  <span class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }}
</div>

<ng-template [ngIf]="user && user.account">
  <div class="account-title">Profile</div>
  <my-account-profile [user]="user"></my-account-profile>
</ng-template>

<div class="account-title">Password</div>
<my-account-change-password></my-account-change-password>

<div class="account-title">Video settings</div>
<my-account-video-settings [user]="user"></my-account-video-settings>