diff --git a/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx b/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx index 5db5115..8e6eb4e 100644 --- a/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx +++ b/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx @@ -13,6 +13,7 @@ import { import React from "react"; import { NWFilter } from "../../api/NWFilterApi"; import { NetworkInfo } from "../../api/NetworksApi"; +import { ServerApi } from "../../api/ServerApi"; import { APIToken, TokenRight } from "../../api/TokensApi"; import { VMInfo } from "../../api/VMApi"; @@ -382,6 +383,94 @@ export function TokenRightsEditor(p: { + {/* Network filters */} + + + + + + {/* Networks filters management */} + + + + + Network filter name + Get definition + Update + Delete + Get XML definition + + + + {/* All networks filters operations */} + + + All + + + + + + + + {/* Per network filter operations */} + {p.nwFilters.map((v, n) => ( + + {v.name} + + {ServerApi.Config.builtin_nwfilter_rules.includes(v.name!) ? ( + + ) : ( + + )} + {ServerApi.Config.builtin_nwfilter_rules.includes(v.name!) ? ( + + ) : ( + + )} + + + ))} + +
+
+ {/* ISO files */}