diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-28 09:45:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-28 09:45:49 +0200 |
commit | ec489ce2f74570f94dffb62266f4ed6f18621b3e (patch) | |
tree | 615274f7c2ea9639816abbf4a5aea0ef58338bb7 /client/src/app/shared/shared-actor-image/actor-avatar-edit.component.html | |
parent | dbef40433f22e55ff321317b7dbe9e8e0dc616f2 (diff) | |
download | PeerTube-ec489ce2f74570f94dffb62266f4ed6f18621b3e.tar.gz PeerTube-ec489ce2f74570f94dffb62266f4ed6f18621b3e.tar.zst PeerTube-ec489ce2f74570f94dffb62266f4ed6f18621b3e.zip |
Rename actor image edit module
Diffstat (limited to 'client/src/app/shared/shared-actor-image/actor-avatar-edit.component.html')
-rw-r--r-- | client/src/app/shared/shared-actor-image/actor-avatar-edit.component.html | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/client/src/app/shared/shared-actor-image/actor-avatar-edit.component.html b/client/src/app/shared/shared-actor-image/actor-avatar-edit.component.html deleted file mode 100644 index 0829263f4..000000000 --- a/client/src/app/shared/shared-actor-image/actor-avatar-edit.component.html +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | <div class="actor" *ngIf="actor"> | ||
2 | <div class="d-flex"> | ||
3 | <img [ngClass]="{ channel: isChannel() }" [src]="preview || actor.avatarUrl" alt="Avatar" /> | ||
4 | |||
5 | <div class="actor-img-edit-container"> | ||
6 | |||
7 | <div *ngIf="editable && !hasAvatar()" class="actor-img-edit-button" [ngbTooltip]="avatarFormat" placement="right" container="body"> | ||
8 | <my-global-icon iconName="upload"></my-global-icon> | ||
9 | <label class="sr-only" for="avatarfile" i18n>Upload a new avatar</label> | ||
10 | <input #avatarfileInput type="file" name="avatarfile" id="avatarfile" [accept]="avatarExtensions" (change)="onAvatarChange(avatarfileInput)"/> | ||
11 | </div> | ||
12 | |||
13 | <div | ||
14 | *ngIf="editable && hasAvatar()" class="actor-img-edit-button" | ||
15 | #avatarPopover="ngbPopover" [ngbPopover]="avatarEditContent" popoverClass="popover-image-info" autoClose="outside" placement="right" | ||
16 | > | ||
17 | <my-global-icon iconName="edit"></my-global-icon> | ||
18 | <label class="sr-only" for="avatarMenu" i18n>Change your avatar</label> | ||
19 | </div> | ||
20 | |||
21 | </div> | ||
22 | </div> | ||
23 | |||
24 | <div class="actor-info"> | ||
25 | <div class="actor-info-display-name">{{ actor.displayName }}</div> | ||
26 | <div *ngIf="displayUsername" class="actor-info-username">{{ actor.name }}</div> | ||
27 | <div *ngIf="displaySubscribers" i18n class="actor-info-followers">{{ actor.followersCount }} subscribers</div> | ||
28 | </div> | ||
29 | </div> | ||
30 | |||
31 | <ng-template #avatarEditContent> | ||
32 | <div class="dropdown-item c-hand" [ngbTooltip]="avatarFormat" placement="right" container="body"> | ||
33 | <my-global-icon iconName="upload"></my-global-icon> | ||
34 | <span for="avatarfile" i18n>Upload a new avatar</span> | ||
35 | <input #avatarfileInput type="file" name="avatarfile" id="avatarfile" [accept]="avatarExtensions" (change)="onAvatarChange(avatarfileInput)"/> | ||
36 | </div> | ||
37 | <div class="dropdown-item c-hand" (click)="deleteAvatar()" (key.enter)="deleteAvatar()"> | ||
38 | <my-global-icon iconName="delete"></my-global-icon> | ||
39 | <span i18n>Remove avatar</span> | ||
40 | </div> | ||
41 | </ng-template> | ||