modal edit profile

This commit is contained in:
Alexandro Uc Santos
2024-04-02 14:50:22 -06:00
parent 479d7fbdc4
commit fdb7a83d9b
6 changed files with 71 additions and 4 deletions

View File

@@ -6,7 +6,8 @@ export const useNotificationsStore = defineStore('notifications', () => {
const text = ref('')
const error = ref(false)
const show = ref(false)
const show = ref(false);
const openProfile = ref(false);
watch(show, () => {
if(show) {
@@ -18,10 +19,17 @@ export const useNotificationsStore = defineStore('notifications', () => {
}
});
const toggleProfile = () => {
console.log('click');
openProfile.value = !openProfile.value;
}
return {
text,
error,
show,
openProfile,
toggleProfile
}
});