Hide selector based on func
parent
2cf91962a1
commit
804e75da55
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue