Skip to content

[6.x] Fix folders not displaying in Bard link stack selector#13986

Merged
jasonvarga merged 1 commit into6.xfrom
bard-link-assets
Feb 18, 2026
Merged

[6.x] Fix folders not displaying in Bard link stack selector#13986
jasonvarga merged 1 commit into6.xfrom
bard-link-assets

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where folders weren't displaying properly in the asset selector when adding a link in Bard.

This was happening because the columns prop was missing, which the Table component relies on to create "fake" cells in folder rows:

<td v-for="column in visibleColumns">
<template v-if="column.field === 'basename'">
<a class="group flex cursor-pointer items-center" @click="selectFolder(folder.path)">
<file-icon
extension="folder"
class="me-2 inline-block size-8 text-blue-400/90 group-hover:text-blue-400"
/>
{{ folder.basename }}
</a>
</template>
</td>
<td class="actions-column pe-3!">
<ItemActions
:url="folderActionUrl"
:actions="folder.actions"
:item="folder.path"
@started="actionStarted"
@completed="actionCompleted"
v-slot="{ actions }"
>
<Dropdown placement="left-start" v-if="folderActions(folder).length">
<DropdownMenu>
<DropdownItem
v-for="action in actions"
:key="action.handle"
:text="__(action.title)"
:icon="action.icon"
:variant="action.dangerous ? 'destructive' : 'default'"
@click="action.run"
/>
</DropdownMenu>
</Dropdown>
</ItemActions>
</td>

Fixes #13980.

Before

CleanShot 2026-02-18 at 17 03 41

After

CleanShot 2026-02-18 at 17 03 15

@jasonvarga jasonvarga merged commit d791336 into 6.x Feb 18, 2026
12 checks passed
@jasonvarga jasonvarga deleted the bard-link-assets branch February 18, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assets view broken when selecting asset as a link in bard field.

2 participants