move static data
This commit is contained in:
@@ -24,6 +24,17 @@ export class TeamJoinRequestViewModel {
|
||||
this.isOwner = isOwner;
|
||||
}
|
||||
|
||||
get id(): string {
|
||||
return this.requestId;
|
||||
}
|
||||
|
||||
get status(): string {
|
||||
if (this.requestStatus === 'pending') return 'Pending';
|
||||
if (this.requestStatus === 'approved') return 'Approved';
|
||||
if (this.requestStatus === 'rejected') return 'Rejected';
|
||||
return this.requestStatus;
|
||||
}
|
||||
|
||||
/** UI-specific: Whether current user can approve */
|
||||
get canApprove(): boolean {
|
||||
return this.isOwner;
|
||||
|
||||
Reference in New Issue
Block a user