Skip to content

Commit

Permalink
Merge pull request #62 from tighten/alk/enable-custom-nova-paths
Browse files Browse the repository at this point in the history
Add support for custom nova paths-v2
  • Loading branch information
faxblaster authored Oct 13, 2022
2 parents 026b120 + d6110f2 commit ca6b5f6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion resources/js/components/tables/ChargesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<BodyCell>
<span>
<InertiaLink
:href="`/nova/nova-stripe/charges/${charge.id}`"
:href="`${novaPath}/nova-stripe/charges/${charge.id}`"
:aria-label="__('View')"
>
<HeroiconsOutlineEye />
Expand Down Expand Up @@ -93,6 +93,7 @@ export default {
failed: 'ns-bg-red-100 ns-text-red-600',
},
page: 1,
novaPath: Nova.config('path'),
}
},
methods: {
Expand Down
3 changes: 2 additions & 1 deletion resources/js/components/tables/CustomersTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<BodyCell>
<span>
<InertiaLink
:href="`/nova/nova-stripe/customers/${customer.id}`"
:href="`${novaPath}/nova-stripe/customers/${customer.id}`"
:aria-label="__('View')"
>
<HeroiconsOutlineEye />
Expand All @@ -65,6 +65,7 @@ export default {
loading: false,
hasMore: false,
page: 1,
novaPath: Nova.config('path'),
}
},
methods: {
Expand Down
4 changes: 3 additions & 1 deletion src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public function boot()
});

Nova::serving(function (ServingNova $event) {
//
Nova::provideToScript([
'path' => config('nova.path'),
]);
});
}

Expand Down

0 comments on commit ca6b5f6

Please # to comment.