fix: poll with modal issue
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
$disableTwoStepConfirmation = data_get(InstanceSettings::get(), 'disable_two_step_confirmation');
|
$disableTwoStepConfirmation = data_get(InstanceSettings::get(), 'disable_two_step_confirmation');
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div x-data="{
|
<div wire:ignore x-data="{
|
||||||
modalOpen: false,
|
modalOpen: false,
|
||||||
step: {{ empty($checkboxes) ? 2 : 1 }},
|
step: {{ empty($checkboxes) ? 2 : 1 }},
|
||||||
initialStep: {{ empty($checkboxes) ? 2 : 1 }},
|
initialStep: {{ empty($checkboxes) ? 2 : 1 }},
|
||||||
@@ -106,8 +106,8 @@
|
|||||||
this.selectedActions.push(id);
|
this.selectedActions.push(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}" @keydown.escape.window="modalOpen = false; resetModal()" :class="{ 'z-40': modalOpen }"
|
}" @keydown.escape.window="modalOpen = false; resetModal()"
|
||||||
class="relative w-auto h-auto">
|
:class="{ 'z-40': modalOpen }" class="relative w-auto h-auto">
|
||||||
@if ($customButton)
|
@if ($customButton)
|
||||||
@if ($buttonFullWidth)
|
@if ($buttonFullWidth)
|
||||||
<x-forms.button @click="modalOpen=true" class="w-full">
|
<x-forms.button @click="modalOpen=true" class="w-full">
|
||||||
@@ -302,7 +302,8 @@
|
|||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
<x-forms.button
|
<x-forms.button
|
||||||
x-bind:disabled="!disableTwoStepConfirmation && confirmWithText && userConfirmationText !== confirmationText"
|
x-bind:disabled="!disableTwoStepConfirmation && confirmWithText && userConfirmationText !==
|
||||||
|
confirmationText"
|
||||||
class="w-auto" isError
|
class="w-auto" isError
|
||||||
@click="
|
@click="
|
||||||
if (dispatchEvent) {
|
if (dispatchEvent) {
|
||||||
@@ -337,11 +338,14 @@
|
|||||||
Your Password
|
Your Password
|
||||||
</label>
|
</label>
|
||||||
<form @submit.prevent="false" @keydown.enter.prevent>
|
<form @submit.prevent="false" @keydown.enter.prevent>
|
||||||
<input type="text" name="username" autocomplete="username" value="{{ auth()->user()->email }}" style="display: none;">
|
<input type="text" name="username" autocomplete="username"
|
||||||
<input type="password" id="password-confirm-{{ $passwordConfirm }}" x-model="password"
|
value="{{ auth()->user()->email }}" style="display: none;">
|
||||||
class="w-full input" placeholder="Enter your password" autocomplete="current-password">
|
<input type="password" id="password-confirm-{{ $passwordConfirm }}"
|
||||||
|
x-model="password" class="w-full input" placeholder="Enter your password"
|
||||||
|
autocomplete="current-password">
|
||||||
</form>
|
</form>
|
||||||
<p x-show="passwordError" x-text="passwordError" class="mt-1 text-sm text-red-500"></p>
|
<p x-show="passwordError" x-text="passwordError" class="mt-1 text-sm text-red-500">
|
||||||
|
</p>
|
||||||
@error('password')
|
@error('password')
|
||||||
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
@enderror
|
@enderror
|
||||||
|
Reference in New Issue
Block a user