Skip to content

Commit

Permalink
Merge pull request #63 from SpicyPaper/v2.x
Browse files Browse the repository at this point in the history
Fix logout dropdown link and add missing Head in Welcome for breeze
  • Loading branch information
tsommie authored Oct 26, 2021
2 parents c5b027c + e900299 commit 825bc93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion breeze/inertia/resources/js/Layouts/Authenticated.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<template #content>
<!-- Authentication -->
<breeze-dropdown-link :href="route('logout')" method="post">
<breeze-dropdown-link @click="logout" as="button">
Log Out
</breeze-dropdown-link>
</template>
Expand Down Expand Up @@ -79,5 +79,11 @@ export default {
showingNavigationDropdown: false,
}
},
methods: {
logout() {
Inertia.post(route("logout"));
}
},
}
</script>
3 changes: 2 additions & 1 deletion breeze/inertia/resources/js/Pages/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,11 @@
</template>

<script>
import { Link } from "@inertiajs/inertia-vue3";
import { Head, Link } from "@inertiajs/inertia-vue3";
export default {
components: {
Head,
Link
},
props: {
Expand Down

0 comments on commit 825bc93

Please sign in to comment.