diff --git a/resources/js/Pages/VacationRequest/Show.vue b/resources/js/Pages/VacationRequest/Show.vue index 36ccb91..575893d 100644 --- a/resources/js/Pages/VacationRequest/Show.vue +++ b/resources/js/Pages/VacationRequest/Show.vue @@ -208,15 +208,23 @@

- Anuluj wniosek - + + + + + + + + + +
diff --git a/resources/js/Shared/ActionButton.vue b/resources/js/Shared/ActionButton.vue new file mode 100644 index 0000000..c47272e --- /dev/null +++ b/resources/js/Shared/ActionButton.vue @@ -0,0 +1,18 @@ + + + diff --git a/resources/js/app.js b/resources/js/app.js index ad83dce..1792ed7 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -6,6 +6,7 @@ import Flatpickr from 'flatpickr' import { Settings } from 'luxon' import { Polish } from 'flatpickr/dist/l10n/pl.js' import Toast from 'vue-toastification' +import ActionButton from '@/Shared/ActionButton' createInertiaApp({ resolve: name => { @@ -25,6 +26,7 @@ createInertiaApp({ pauseOnFocusLoss: false, }) .component('InertiaLink', Link) + .component('ActionButton', ActionButton) .component('InertiaHead', Head) .mount(el) }, diff --git a/routes/web.php b/routes/web.php index c155293..b67244b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -80,7 +80,7 @@ Route::middleware(["auth", TrackUserLastActivity::class])->group(function (): vo Route::get("/monthly-usage", MonthlyUsageController::class) ->name("monthly-usage"); Route::get("/annual-summary", AnnualSummaryController::class) - ->name("annual-summmary"); + ->name("annual-summary"); }); });