mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-26 00:42:08 +02:00
Reorder code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
4f0c800cad
commit
422c27fcef
@ -397,6 +397,14 @@ class UserPillPart extends PillPart {
|
|||||||
super(userId, displayName);
|
super(userId, displayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get type(): IPillPart["type"] {
|
||||||
|
return Type.UserPill;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected get className() {
|
||||||
|
return "mx_UserPill mx_Pill";
|
||||||
|
}
|
||||||
|
|
||||||
protected setAvatar(node: HTMLElement): void {
|
protected setAvatar(node: HTMLElement): void {
|
||||||
if (!this.member) {
|
if (!this.member) {
|
||||||
return;
|
return;
|
||||||
@ -417,14 +425,6 @@ class UserPillPart extends PillPart {
|
|||||||
member: this.member,
|
member: this.member,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
public get type(): IPillPart["type"] {
|
|
||||||
return Type.UserPill;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected get className() {
|
|
||||||
return "mx_UserPill mx_Pill";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class PillCandidatePart extends PlainBasePart implements IPillCandidatePart {
|
class PillCandidatePart extends PlainBasePart implements IPillCandidatePart {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user