Changes create ResetPassword
This commit is contained in:
31
components/menu/MenuResetPassword.vue
Normal file
31
components/menu/MenuResetPassword.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="mx-2">
|
||||
<a class="ml-5" @click="resetPassword">
|
||||
<SvgIcon v-bind="{ name: 'padlock.png', type: 'gray', size: 20 }"></SvgIcon>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
const { $store } = useNuxtApp();
|
||||
|
||||
const emit = defineEmits(["clickevent"]);
|
||||
var props = defineProps({
|
||||
appid: Number,
|
||||
row: Object,
|
||||
});
|
||||
|
||||
function resetPassword() {
|
||||
emit("clickevent", {
|
||||
name: "dataevent",
|
||||
data: {
|
||||
modal: {
|
||||
title: $store.lang === "en" ? "Reset password" : "Đặt lại mật khẩu",
|
||||
height: "300px",
|
||||
width: "800px",
|
||||
component: "user/ResetPassword",
|
||||
vbind: { row: props.row },
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user