Skip to content

Commit

Permalink
Fixed record page generator capitalization and record disposal.
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 7, 2024
1 parent 26699b3 commit 3425e95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ outline: deep
* Fixed API options cassing problem.
* Upgraded to PrimeVue 3.51.0 from 3.47.2.
* Fixed undefined session in delete api.
* Fixed record page generator capitalization and record disposal.

## 2024-04-05
* Changed the way foreign keys are generated due to the possibility of creating keynames that were too long.
Expand Down
3 changes: 2 additions & 1 deletion ving/generator/nuxtpages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const ${name.toLowerCase()} = useVingRecord({
},
});
await ${name.toLowerCase()}.fetch();
onBeforeRouteLeave(() => ${name}.dispose());
onBeforeRouteLeave(() => ${name.toLowerCase()}.dispose());
const dt = useDateTime();
const breadcrumbs = [
{ label: '${makeWords(name)}s', to: '/${name.toLowerCase()}' },
Expand Down Expand Up @@ -295,6 +295,7 @@ const ${name.toLowerCase()} = useVingRecord({
},
});
await ${name.toLowerCase()}.fetch()
onBeforeRouteLeave(() => ${name.toLowerCase()}.dispose());
const breadcrumbs = [
{ label: '${makeWords(name)}s', to: '/${name.toLowerCase()}' },
{ label: 'View', to: '/${name.toLowerCase()}/'+${name.toLowerCase()}.props.id },
Expand Down

0 comments on commit 3425e95

Please sign in to comment.