Add identity pickers on event creation & join
Also it now saves current actor in localStorage and initalizes it in Apollo Cache (just like user stuff). This allows not relying on loggedPerson query anymore. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -36,7 +36,7 @@ export class Actor implements IActor {
|
||||
return `@${this.preferredUsername}${domain}`;
|
||||
}
|
||||
|
||||
displayName(): string {
|
||||
public displayName(): string {
|
||||
return this.name != null && this.name !== '' ? this.name : this.usernameWithDomain();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ export interface IEvent {
|
||||
|
||||
picture: IPicture | null;
|
||||
|
||||
organizerActor: IActor;
|
||||
organizerActor?: IActor;
|
||||
attributedTo: IActor;
|
||||
participants: IParticipant[];
|
||||
|
||||
@@ -159,7 +159,7 @@ export class EventModel implements IEvent {
|
||||
relatedEvents: IEvent[] = [];
|
||||
|
||||
attributedTo = new Actor();
|
||||
organizerActor = new Actor();
|
||||
organizerActor?: IActor;
|
||||
|
||||
tags: ITag[] = [];
|
||||
options: IEventOptions = new EventOptions();
|
||||
|
||||
Reference in New Issue
Block a user