From ec5345222051715d3616d4a84ef23acd9934a75f Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Tue, 26 Aug 2025 16:52:32 +0800 Subject: [PATCH] Chore: lint fix --- src/components/EntitySummaryButton.vue | 8 ++++---- src/components/GiftedDialog.vue | 2 -- src/components/PersonCard.vue | 2 +- src/constants/entities.ts | 2 -- src/constants/notifications.ts | 2 +- src/views/ContactGiftingView.vue | 26 ++++++++++++++++++-------- 6 files changed, 24 insertions(+), 18 deletions(-) diff --git a/src/components/EntitySummaryButton.vue b/src/components/EntitySummaryButton.vue index a651b0c8..80890eff 100644 --- a/src/components/EntitySummaryButton.vue +++ b/src/components/EntitySummaryButton.vue @@ -144,12 +144,12 @@ export default class EntitySummaryButton extends Vue { */ get nameClasses(): string { const baseClasses = "font-semibold truncate"; - + // Add italic styling for special "Unnamed" or entities without set names if (!this.entity?.name || this.entity?.did === "") { return `${baseClasses} italic text-slate-500`; } - + return baseClasses; } @@ -161,12 +161,12 @@ export default class EntitySummaryButton extends Vue { if (this.entity?.name) { return this.entity.name; } - + // If the entity is the special "Unnamed", use "Unnamed" if (this.entity?.did === "") { return UNNAMED_ENTITY_NAME; } - + // If the entity does not have a set name, but is not the special "Unnamed", use their DID return this.entity?.did; } diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 98ccf7cd..d91e68b3 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -227,8 +227,6 @@ export default class GiftedDialog extends Vue { this.allMyDids = await retrieveAccountDids(); - - if ( this.giverEntityType === "project" || this.recipientEntityType === "project" diff --git a/src/components/PersonCard.vue b/src/components/PersonCard.vue index 2c6f439a..bf2b72b9 100644 --- a/src/components/PersonCard.vue +++ b/src/components/PersonCard.vue @@ -114,7 +114,7 @@ export default class PersonCard extends Vue { if (this.person.name) { return this.person.name; } - + // If the entity does not have a set name return this.person.did; } diff --git a/src/constants/entities.ts b/src/constants/entities.ts index 71b204aa..62b9af5a 100644 --- a/src/constants/entities.ts +++ b/src/constants/entities.ts @@ -12,5 +12,3 @@ export const UNNAMED_PERSON = "unnamed person"; // Project-related unnamed entities export const UNNAMED_PROJECT = "Unnamed Project"; - - diff --git a/src/constants/notifications.ts b/src/constants/notifications.ts index a62f738c..49b14812 100644 --- a/src/constants/notifications.ts +++ b/src/constants/notifications.ts @@ -874,7 +874,7 @@ export const NOTIFY_CONTACT_LINK_COPIED = { // Template for registration success message // Used in: ContactsView.vue (register method - registration success with contact name) export const getRegisterPersonSuccessMessage = (name?: string): string => - `${name || THAT_UNNAMED_PERSON} ${NOTIFY_REGISTER_PERSON_SUCCESS.message}`; + `${name || THAT_UNNAMED_PERSON} ${NOTIFY_REGISTER_PERSON_SUCCESS.message}`; // Template for visibility success message // Used in: ContactsView.vue (setVisibility method - visibility success with contact name) diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue index 0f52b036..21adf7cf 100644 --- a/src/views/ContactGiftingView.vue +++ b/src/views/ContactGiftingView.vue @@ -42,7 +42,9 @@ icon="circle-question" class="text-slate-400 text-4xl shrink-0" /> - {{ unnamedEntityName }} + {{ + unnamedEntityName + }}