diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-06 11:39:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-07 10:18:32 +0100 |
commit | 9e401fde36bdcb4b5e8dc54262c01f1e660d81a8 (patch) | |
tree | a2a3c115254370048c6dc0178c7ac91b977a3f2d /client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts | |
parent | 464e4ed92c119c8f5d8ae561ad1d27a90d2581a0 (diff) | |
download | PeerTube-9e401fde36bdcb4b5e8dc54262c01f1e660d81a8.tar.gz PeerTube-9e401fde36bdcb4b5e8dc54262c01f1e660d81a8.tar.zst PeerTube-9e401fde36bdcb4b5e8dc54262c01f1e660d81a8.zip |
Refactor my actor avatar edit
Diffstat (limited to 'client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts')
-rw-r--r-- | client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts index b71a3c485..fc925083e 100644 --- a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts +++ b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core' | 1 | import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core' |
2 | import { Notifier, ServerService } from '@app/core' | 2 | import { Notifier, ServerService } from '@app/core' |
3 | import { Account, VideoChannel } from '@app/shared/shared-main' | 3 | import { Account, VideoChannel } from '@app/shared/shared-main' |
4 | import { NgbPopover } from '@ng-bootstrap/ng-bootstrap' | ||
5 | import { getBytes } from '@root-helpers/bytes' | 4 | import { getBytes } from '@root-helpers/bytes' |
6 | import { imageToDataURL } from '@root-helpers/images' | 5 | import { imageToDataURL } from '@root-helpers/images' |
7 | 6 | ||
@@ -15,7 +14,6 @@ import { imageToDataURL } from '@root-helpers/images' | |||
15 | }) | 14 | }) |
16 | export class ActorAvatarEditComponent implements OnInit { | 15 | export class ActorAvatarEditComponent implements OnInit { |
17 | @ViewChild('avatarfileInput') avatarfileInput: ElementRef<HTMLInputElement> | 16 | @ViewChild('avatarfileInput') avatarfileInput: ElementRef<HTMLInputElement> |
18 | @ViewChild('avatarPopover') avatarPopover: NgbPopover | ||
19 | 17 | ||
20 | @Input() actor: VideoChannel | Account | 18 | @Input() actor: VideoChannel | Account |
21 | @Input() editable = true | 19 | @Input() editable = true |
@@ -58,7 +56,6 @@ export class ActorAvatarEditComponent implements OnInit { | |||
58 | 56 | ||
59 | const formData = new FormData() | 57 | const formData = new FormData() |
60 | formData.append('avatarfile', avatarfile) | 58 | formData.append('avatarfile', avatarfile) |
61 | this.avatarPopover?.close() | ||
62 | this.avatarChange.emit(formData) | 59 | this.avatarChange.emit(formData) |
63 | 60 | ||
64 | if (this.previewImage) { | 61 | if (this.previewImage) { |