modal edit profile
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user