forked from Ivasoft/geovisio-website
remove package
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
path="/"
|
||||
/>
|
||||
</div>
|
||||
<div v-on-click-outside="closeModal" class="wrapper-entries">
|
||||
<div ref="list" class="wrapper-entries">
|
||||
<ul :class="['nav-list', { 'menu-open': !menuIsClosed }]">
|
||||
<li v-if="isLogged" class="logged-link">
|
||||
<Link
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, computed } from 'vue'
|
||||
import { vOnClickOutside } from '@vueuse/components'
|
||||
import { onClickOutside } from '@vueuse/core'
|
||||
import { useCookies } from 'vue3-cookies'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
@@ -112,8 +112,11 @@ defineProps({
|
||||
authEnabled: { type: Boolean, default: true },
|
||||
userProfileUrl: { type: String, default: null }
|
||||
})
|
||||
const list = ref(null)
|
||||
let menuIsClosed = ref<boolean>(true)
|
||||
|
||||
onClickOutside(list, () => closeModal())
|
||||
|
||||
function closeModal() {
|
||||
menuIsClosed.value = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user