Skip to content

Commit 62935d7

Browse files
authored
[6.x] Fix double page tree panel in selector (#13046)
1 parent d85ef40 commit 62935d7

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

resources/js/components/inputs/relationship/Selector.vue

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -61,40 +61,38 @@
6161
</div>
6262

6363
<div class="mx-4 flex-1 overflow-auto">
64-
<Panel>
65-
<page-tree
66-
ref="tree"
67-
:pages-url="tree.url"
68-
:show-slugs="tree.showSlugs"
69-
:blueprints="tree.blueprints"
70-
:expects-root="tree.expectsRoot"
71-
:site="site"
72-
:preferences-prefix="`selector-field.${name}`"
73-
:editable="false"
74-
@branch-clicked="toggleSelection($event.id)"
75-
>
76-
<template #branch-action="{ branch, index }">
77-
<div>
78-
<Checkbox
79-
:ref="`tree-branch-${branch.id}`"
80-
class="mt-3 mx-3"
81-
:value="branch.id"
82-
:model-value="isSelected(branch.id)"
83-
:disabled="reachedSelectionLimit && !singleSelect && !isSelected(branch.id)"
84-
:label="getCheckboxLabel(branch)"
85-
:description="getCheckboxDescription(branch)"
86-
size="sm"
87-
solo
88-
@update:model-value="toggleSelection(branch.id)"
89-
/>
90-
</div>
91-
</template>
92-
93-
<template #branch-icon="{ branch }">
94-
<ui-icon name="external-link" v-if="isRedirectBranch(branch)" v-tooltip="__('Redirect')" />
95-
</template>
96-
</page-tree>
97-
</Panel>
64+
<page-tree
65+
ref="tree"
66+
:pages-url="tree.url"
67+
:show-slugs="tree.showSlugs"
68+
:blueprints="tree.blueprints"
69+
:expects-root="tree.expectsRoot"
70+
:site="site"
71+
:preferences-prefix="`selector-field.${name}`"
72+
:editable="false"
73+
@branch-clicked="toggleSelection($event.id)"
74+
>
75+
<template #branch-action="{ branch, index }">
76+
<div>
77+
<Checkbox
78+
:ref="`tree-branch-${branch.id}`"
79+
class="mt-3 mx-3"
80+
:value="branch.id"
81+
:model-value="isSelected(branch.id)"
82+
:disabled="reachedSelectionLimit && !singleSelect && !isSelected(branch.id)"
83+
:label="getCheckboxLabel(branch)"
84+
:description="getCheckboxDescription(branch)"
85+
size="sm"
86+
solo
87+
@update:model-value="toggleSelection(branch.id)"
88+
/>
89+
</div>
90+
</template>
91+
92+
<template #branch-icon="{ branch }">
93+
<ui-icon name="external-link" v-if="isRedirectBranch(branch)" v-tooltip="__('Redirect')" />
94+
</template>
95+
</page-tree>
9896
</div>
9997
</template>
10098

0 commit comments

Comments
 (0)