fix: use change password modal in place
(cherry picked from commit 84d4327e8040a07653cc9bf1cc28639b89f9edbb)
This commit is contained in:
parent
59999599a3
commit
a485d8eb6e
@ -66,6 +66,10 @@
|
|||||||
icon-left="lock"
|
icon-left="lock"
|
||||||
@click="showChangePasswordModal = true"
|
@click="showChangePasswordModal = true"
|
||||||
/>
|
/>
|
||||||
|
<ChangePasswordModal
|
||||||
|
v-if="showChangePasswordModal"
|
||||||
|
v-model="showChangePasswordModal"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
<div class="flex justify-between gap-4">
|
<div class="flex justify-between gap-4">
|
||||||
@ -97,10 +101,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import ChangePasswordModal from '@/components/Settings/ChangePasswordModal.vue'
|
||||||
import CameraIcon from '@/components/Icons/CameraIcon.vue'
|
import CameraIcon from '@/components/Icons/CameraIcon.vue'
|
||||||
import { usersStore } from '@/stores/users'
|
import { usersStore } from '@/stores/users'
|
||||||
import { validateIsImageFile } from '@/utils'
|
import { validateIsImageFile } from '@/utils'
|
||||||
import { showChangePasswordModal } from '@/composables/modals'
|
|
||||||
import {
|
import {
|
||||||
Dropdown,
|
Dropdown,
|
||||||
FileUploader,
|
FileUploader,
|
||||||
@ -116,6 +120,7 @@ const user = computed(() => getUser() || {})
|
|||||||
|
|
||||||
const profile = ref({})
|
const profile = ref({})
|
||||||
const error = ref('')
|
const error = ref('')
|
||||||
|
const showChangePasswordModal = ref(false)
|
||||||
|
|
||||||
const dirty = computed(() => {
|
const dirty = computed(() => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user