Skip to content

Commit ca6b5f6

Browse files
authored
Merge pull request #62 from tighten/alk/enable-custom-nova-paths
Add support for custom nova paths-v2
2 parents 026b120 + d6110f2 commit ca6b5f6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

dist/js/tool.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/tables/ChargesTable.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<BodyCell>
5454
<span>
5555
<InertiaLink
56-
:href="`/nova/nova-stripe/charges/${charge.id}`"
56+
:href="`${novaPath}/nova-stripe/charges/${charge.id}`"
5757
:aria-label="__('View')"
5858
>
5959
<HeroiconsOutlineEye />
@@ -93,6 +93,7 @@ export default {
9393
failed: 'ns-bg-red-100 ns-text-red-600',
9494
},
9595
page: 1,
96+
novaPath: Nova.config('path'),
9697
}
9798
},
9899
methods: {

resources/js/components/tables/CustomersTable.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<BodyCell>
4545
<span>
4646
<InertiaLink
47-
:href="`/nova/nova-stripe/customers/${customer.id}`"
47+
:href="`${novaPath}/nova-stripe/customers/${customer.id}`"
4848
:aria-label="__('View')"
4949
>
5050
<HeroiconsOutlineEye />
@@ -65,6 +65,7 @@ export default {
6565
loading: false,
6666
hasMore: false,
6767
page: 1,
68+
novaPath: Nova.config('path'),
6869
}
6970
},
7071
methods: {

src/ToolServiceProvider.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public function boot()
2222
});
2323

2424
Nova::serving(function (ServingNova $event) {
25-
//
25+
Nova::provideToScript([
26+
'path' => config('nova.path'),
27+
]);
2628
});
2729
}
2830

0 commit comments

Comments
 (0)