File pool policy check

This commit is contained in:
2025-07-26 19:46:38 +08:00
parent eaf0b366d3
commit b0683576b9
23 changed files with 255 additions and 1575 deletions

View File

@@ -149,7 +149,8 @@ const renderSingleSelectTag: SelectRenderTag = ({ option }) => {
)
}
function renderPoolSelectLabel(option: SelectOption & SnFilePool, selected: boolean) {
function renderPoolSelectLabel(option: SelectOption & SnFilePool) {
const policy: any = option.policy_config
return h(
'div',
{
@@ -171,7 +172,7 @@ function renderPoolSelectLabel(option: SelectOption & SnFilePool, selected: bool
},
},
[
option.public_usable &&
policy.public_usable &&
h(
NTag,
{
@@ -181,7 +182,7 @@ function renderPoolSelectLabel(option: SelectOption & SnFilePool, selected: bool
},
{ default: () => 'Public Shared' },
),
option.public_indexable &&
policy.public_indexable &&
h(
NTag,
{
@@ -191,7 +192,7 @@ function renderPoolSelectLabel(option: SelectOption & SnFilePool, selected: bool
},
{ default: () => 'Public Indexable' },
),
option.allow_encryption &&
policy.allow_encryption &&
h(
NTag,
{