Hide selector based on func

dhcp-server
Pat Hartl 2023-09-11 19:16:15 -05:00
parent 2cf91962a1
commit 804e75da55
2 changed files with 5 additions and 1 deletions

View File

@ -128,7 +128,7 @@
SelectedRowsChanged="SelectedChanged"
RowSelectable="EntrySelectable"
Size="@TableSize.Small">
<Selection Key="@context.Path" Type="@(SelectMultiple ? "checkbox" : "radio")" />
<Selection Key="@context.Path" Type="@(SelectMultiple ? "checkbox" : "radio")" Disabled="!EntrySelectable.Invoke(context)" Class="@(EntrySelectable.Invoke(context) ? "" : "file-manager-selector-hidden")" />
<Column TData="string" Width="32">
@if (context is FileManagerFile)
{

View File

@ -150,6 +150,10 @@
height: calc(100vh - 55px - 53px);
}
.file-manager-selector-hidden .ant-radio-wrapper {
display: none;
}
[data-theme="Dark"] .file-manager,
[data-theme="Dark"] .file-manager-list,
[data-theme="Dark"] .file-picker-dialog .file-manager tbody tr {