fix: ensure consistent "Recently Added" contacts in ProjectRepresentativeDialog
EntityGrid's recentContacts assumes contacts are sorted by date added (newest first), but ProjectRepresentativeDialog was receiving contacts sorted alphabetically from NewEditProjectView, causing it to show different "Recently Added" contacts than GiftedDialog. - Changed NewEditProjectView to use $contactsByDateAdded() instead of $getAllContacts() - Added documentation comments to EntityGrid.vue to prevent this issue in future reuses
This commit is contained in:
@@ -461,9 +461,9 @@ export default class NewEditProjectView extends Vue {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
this.allMyDids = await (this as any).$getAllAccountDids();
|
||||
|
||||
// Load contacts
|
||||
// Load contacts sorted by date added (newest first) for consistent "Recently Added" display
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
this.allContacts = await (this as any).$getAllContacts();
|
||||
this.allContacts = await (this as any).$contactsByDateAdded();
|
||||
|
||||
this.apiServer = settings.apiServer || "";
|
||||
this.showGeneralAdvanced = !!settings.showGeneralAdvanced;
|
||||
|
||||
Reference in New Issue
Block a user