diff --git a/stubs/inertia/resources/js/Components/Banner.vue b/stubs/inertia/resources/js/Components/Banner.vue index 9ab9e6c91..5da4fefb2 100644 --- a/stubs/inertia/resources/js/Components/Banner.vue +++ b/stubs/inertia/resources/js/Components/Banner.vue @@ -1,14 +1,15 @@ diff --git a/stubs/inertia/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue b/stubs/inertia/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue index e15e780ef..45b85b660 100644 --- a/stubs/inertia/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue +++ b/stubs/inertia/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue @@ -14,6 +14,7 @@ const props = defineProps({ requiresConfirmation: Boolean, }); +const page = usePage(); const enabling = ref(false); const confirming = ref(false); const disabling = ref(false); @@ -26,7 +27,7 @@ const confirmationForm = useForm({ }); const twoFactorEnabled = computed( - () => ! enabling.value && usePage().props.auth.user?.two_factor_enabled, + () => ! enabling.value && page.props.auth.user?.two_factor_enabled, ); watch(twoFactorEnabled, () => { diff --git a/stubs/inertia/resources/js/Pages/Teams/Partials/TeamMemberManager.vue b/stubs/inertia/resources/js/Pages/Teams/Partials/TeamMemberManager.vue index dec9fd3eb..d216d8ed7 100644 --- a/stubs/inertia/resources/js/Pages/Teams/Partials/TeamMemberManager.vue +++ b/stubs/inertia/resources/js/Pages/Teams/Partials/TeamMemberManager.vue @@ -20,6 +20,8 @@ const props = defineProps({ userPermissions: Object, }); +const page = usePage(); + const addTeamMemberForm = useForm({ email: '', role: null, @@ -69,7 +71,7 @@ const confirmLeavingTeam = () => { }; const leaveTeam = () => { - leaveTeamForm.delete(route('team-members.destroy', [props.team, usePage().props.auth.user])); + leaveTeamForm.delete(route('team-members.destroy', [props.team, page.props.auth.user])); }; const confirmTeamMemberRemoval = (teamMember) => {