fix some derived data that was removed elsewhere
This commit is contained in:
@@ -74,10 +74,6 @@ export default class EntitySummaryButton extends Vue {
|
|||||||
@Prop({ required: true })
|
@Prop({ required: true })
|
||||||
entity!: EntityData | Contact | null;
|
entity!: EntityData | Contact | null;
|
||||||
|
|
||||||
/** Type of entity: 'person' or 'project' */
|
|
||||||
@Prop({ required: true })
|
|
||||||
entityType!: "person" | "project";
|
|
||||||
|
|
||||||
/** Display label for the entity role */
|
/** Display label for the entity role */
|
||||||
@Prop({ required: true })
|
@Prop({ required: true })
|
||||||
label!: string;
|
label!: string;
|
||||||
@@ -92,6 +88,10 @@ export default class EntitySummaryButton extends Vue {
|
|||||||
entity: EntityData | Contact | null;
|
entity: EntityData | Contact | null;
|
||||||
}) => void | Promise<void>;
|
}) => void | Promise<void>;
|
||||||
|
|
||||||
|
get entityType(): string {
|
||||||
|
return this.entity && "handleId" in this.entity ? "project" : "person";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSS classes for the main container
|
* CSS classes for the main container
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user