feat(exclusion): hide section with type exclusion

This commit is contained in:
divocatt
2026-05-29 16:53:47 +03:00
parent 1365febaa4
commit 6e7b8a6be2
3 changed files with 10 additions and 3 deletions

View File

@@ -29,7 +29,9 @@ export async function getDashboardSections(): Promise<IGetDashboardSectionsRespo
const data = configSections
.filter(
(section) =>
section.connection_type !== 'block' && section['.type'] !== 'settings',
section.connection_type !== 'block' &&
section.connection_type !== 'exclusion' &&
section['.type'] !== 'settings',
)
.map((section) => {
if (section.connection_type === 'proxy') {

View File

@@ -122,13 +122,18 @@ export namespace Podkop {
connection_type: 'block';
}
export interface ConfigExclusionSection {
connection_type: 'exclusion';
}
export type ConfigBaseSection =
| ConfigProxyUrlTestSection
| ConfigProxySelectorSection
| ConfigProxyUrlSection
| ConfigProxyOutboundSection
| ConfigVpnSection
| ConfigBlockSection;
| ConfigBlockSection
| ConfigExclusionSection;
export type ConfigSection = ConfigBaseSection & {
'.name': string;