Skip to content

Commit

Permalink
Fix feature toggles in Inertia (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Nov 12, 2020
1 parent ca94bd5 commit 2377572
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions stubs/inertia/resources/js/Pages/Profile/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@

<div>
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
<update-profile-information-form :user="$page.user" />
<div v-if="$page.jetstream.canManageUpdateProfileInformation">
<update-profile-information-form :user="$page.user" />

<jet-section-border />
<jet-section-border />
</div>

<update-password-form class="mt-10 sm:mt-0" />
<div v-if="$page.jetstream.canManageUpdatePassword">
<update-password-form class="mt-10 sm:mt-0" />

<div v-if="$page.jetstream.canManageTwoFactorAuthentication">
<jet-section-border />
</div>

<div v-if="$page.jetstream.canManageTwoFactorAuthentication">
<two-factor-authentication-form class="mt-10 sm:mt-0" />
</div>

<jet-section-border />
<jet-section-border />
</div>

<logout-other-browser-sessions-form :sessions="sessions" class="mt-10 sm:mt-0" />

Expand Down

0 comments on commit 2377572

Please sign in to comment.