@memberjunction/ng-user-view-grid 0.9.86 → 0.9.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -522,10 +522,11 @@ export class UserViewGridComponent {
|
|
|
522
522
|
return;
|
|
523
523
|
if (this._entityInfo) {
|
|
524
524
|
const globalRowNum = this.getGlobalRowNumberFromGridRowNumber(args.rowIndex);
|
|
525
|
+
const pkeyVal = this.viewData[globalRowNum][this._entityInfo.PrimaryKey.Name];
|
|
525
526
|
this.rowClicked.emit({
|
|
526
527
|
entityId: this._entityInfo.ID,
|
|
527
528
|
entityName: this._entityInfo.Name,
|
|
528
|
-
primaryKeyValue:
|
|
529
|
+
primaryKeyValue: pkeyVal
|
|
529
530
|
});
|
|
530
531
|
if (this._entityInfo.AllowUpdateAPI &&
|
|
531
532
|
this.EditMode !== "None") {
|
|
@@ -537,7 +538,7 @@ export class UserViewGridComponent {
|
|
|
537
538
|
}
|
|
538
539
|
if (!this.InEditMode && this.AutoNavigate) {
|
|
539
540
|
// tell app router to go to this record
|
|
540
|
-
this.router.navigate(['resource', 'record',
|
|
541
|
+
this.router.navigate(['resource', 'record', pkeyVal], { queryParams: { Entity: this._entityInfo.Name } });
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
544
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-user-view-grid",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.87",
|
|
4
4
|
"description": "MemberJunction: Angular Grid to display dynamic and saved user views for any entity in MemberJunction.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|