fix: hide tab button on child table (#26148)

This commit is contained in:
Ankush Menat 2024-04-24 19:42:28 +05:30 committed by GitHub
parent a73e65581d
commit d758f0c3f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,10 @@ function resize(e) {
<div class="sidebar-container" :style="{ width: `${sidebar_width}px` }">
<FieldProperties v-if="store.form.selected_field" />
<div class="default-state" v-else>
<div class="actions" v-if="store.form.layout.tabs.length == 1 && !store.read_only">
<div
class="actions"
v-if="store.form.layout.tabs.length == 1 && !store.read_only && !store.doc.istable"
>
<button
class="new-tab-btn btn btn-default btn-xs"
:title="__('Add new tab')"