fix: load whatsapp settings only if installed
This commit is contained in:
parent
30532fb1c3
commit
d5871b8db2
@ -92,10 +92,14 @@ const tabs = computed(() => {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
return _tabs.filter((tab) => {
|
return _tabs.map((tab) => {
|
||||||
return tab.items.some((item) => {
|
tab.items = tab.items.filter((item) => {
|
||||||
return item.condition ? item.condition() : true
|
if (item.condition) {
|
||||||
|
return item.condition()
|
||||||
|
}
|
||||||
|
return true
|
||||||
})
|
})
|
||||||
|
return tab
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,8 @@
|
|||||||
isCollapsed
|
isCollapsed
|
||||||
? 'w-auto px-0'
|
? 'w-auto px-0'
|
||||||
: open
|
: open
|
||||||
? 'w-52 bg-white px-2 shadow-sm'
|
? 'w-52 bg-white px-2 shadow-sm'
|
||||||
: 'w-52 px-2 hover:bg-gray-200'
|
: 'w-52 px-2 hover:bg-gray-200'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<CRMLogo class="size-8 flex-shrink-0 rounded" />
|
<CRMLogo class="size-8 flex-shrink-0 rounded" />
|
||||||
@ -44,7 +44,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
<SettingsModal v-model="showSettingsModal" />
|
<SettingsModal v-if="showSettingsModal" v-model="showSettingsModal" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user