Fix person profile more-menu opening twice
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -100,6 +100,7 @@ const cards = ref<ProjectCardDto[]>([]);
|
||||
const tahesabMoshtariCode = ref<number | null>(null);
|
||||
|
||||
const moreOpen = ref(false);
|
||||
const mobMoreOpen = ref(false);
|
||||
const filterOpen = ref(false);
|
||||
const historyFilter = ref<HistoryFilter>('all');
|
||||
const tab = ref<TabKey>('activities');
|
||||
@@ -402,6 +403,7 @@ async function load() {
|
||||
loading.value = true;
|
||||
error.value = '';
|
||||
moreOpen.value = false;
|
||||
mobMoreOpen.value = false;
|
||||
filterOpen.value = false;
|
||||
aiSummary.value = null;
|
||||
tahesabMoshtariCode.value = null;
|
||||
@@ -470,6 +472,7 @@ async function load() {
|
||||
|
||||
function closeMenus() {
|
||||
moreOpen.value = false;
|
||||
mobMoreOpen.value = false;
|
||||
filterOpen.value = false;
|
||||
}
|
||||
|
||||
@@ -609,7 +612,7 @@ watch(() => route.query.tab, readTab, { immediate: true });
|
||||
<RouterLink class="icon-btn" :to="{ name: 'person-edit', params: { id } }" aria-label="ویرایش">
|
||||
<UiIcon name="pencil" :size="18" />
|
||||
</RouterLink>
|
||||
<ProfileMoreMenu v-model="moreOpen" :items="moreItems" @select="onMoreSelect" />
|
||||
<ProfileMoreMenu v-model="mobMoreOpen" :items="moreItems" @select="onMoreSelect" />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user