|
61 | 61 | </div> |
62 | 62 |
|
63 | 63 | <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> |
98 | 96 | </div> |
99 | 97 | </template> |
100 | 98 |
|
|
0 commit comments