From f3b1d901a8b154536d1ae8ca7fc4a987dedff8a7 Mon Sep 17 00:00:00 2001 From: kham vilaythong Date: Thu, 24 Sep 2026 22:28:34 +1000 Subject: [PATCH] put in vieww --- API/.vscode/launch.json | 4 ++-- API/FamilyTreeAPI/appsettings.json | 2 +- UI/src/app/person/person.edit.ts | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/API/.vscode/launch.json b/API/.vscode/launch.json index 5d4ab4b..b110a3e 100644 --- a/API/.vscode/launch.json +++ b/API/.vscode/launch.json @@ -8,7 +8,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/FamilyTreeAPI/bin/Debug/net10.0/FamilyTreeAPI", + "program": "${workspaceFolder}/FamilyTreeAPI/bin/Debug/net10.0/FamilyTreeAPI.dll", "args": [], "cwd": "${workspaceFolder}", "stopAtEntry": false, @@ -34,7 +34,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "publish", - "program": "${workspaceFolder}\\FamilyTreeAPI\\bin\\Release\\net10.0\\FamilyTreeAPI.dll", + "program": "${workspaceFolder}/FamilyTreeAPI/bin/Release/net10.0/linux-x64/FamilyTreeAPI.dll", "serverReadyAction": { "action": "openExternally", "pattern": "listening on:\\s+(https?://\\S+)", diff --git a/API/FamilyTreeAPI/appsettings.json b/API/FamilyTreeAPI/appsettings.json index c5e08d3..a31adb3 100644 --- a/API/FamilyTreeAPI/appsettings.json +++ b/API/FamilyTreeAPI/appsettings.json @@ -2,7 +2,7 @@ "AppSettings": { "Secret": "Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.", - "iSQLConnectionString_i": "host=localhost;port=5432;database=FamilyTreeDB_prod;username=postgres;password=Positive~1;", + "iSQLConnectionString_i": "host=localhost;port=5432;database=familytreedb;username=postgres;password=Positive~1;", "SQLConnectionString": "host=127.0.0.1;port=5432;database=familytreedb;username=postgres;password=Positive~1;", "ImageFolder": "/temp/Family", diff --git a/UI/src/app/person/person.edit.ts b/UI/src/app/person/person.edit.ts index 6b2ecb9..1fe1a0c 100644 --- a/UI/src/app/person/person.edit.ts +++ b/UI/src/app/person/person.edit.ts @@ -307,7 +307,9 @@ get isFieldsChange() { doViewImage(imageName:string): void { const ref = this.dialogService.open(ImageDisplayComponent, { data: { - imageName, + imageName, + personId: this._id, + photyType: enumPhoto.Profile }, header: 'View Image', draggable: true,