diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index 9d6c03d6..b6316602 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -75,9 +75,9 @@
{{ i18n "pages.inbounds.certificatePath" }}
{{ i18n "pages.inbounds.certificateContent" }}
- +
- -
+ +
+ -
@@ -120,9 +120,9 @@
{{ i18n "pages.inbounds.certificatePath" }}
{{ i18n "pages.inbounds.certificateContent" }}
- +
- -
+ +
+ -
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index f11d5a79..6fdf0c43 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -105,7 +105,17 @@
-
+
+
+ {{ i18n "none" }}
+ {{ i18n "disabled" }}
+ {{ i18n "depleted" }}
+ {{ i18n "depletingSoon" }}
+
+
+
{
+ const newInbound = new DBInbound(inbound);
+ const inboundSettings = JSON.parse(inbound.settings);
+ if (this.clientCount[inbound.id] && this.clientCount[inbound.id].hasOwnProperty(this.filterBy)){
+ const list = this.clientCount[inbound.id][this.filterBy];
+ if (list.length > 0) {
+ const filteredSettings = { "clients": [] };
+ inboundSettings.clients.forEach(client => {
+ if (list.includes(client.email)) {
+ filteredSettings.clients.push(client);
+ }
+ });
+ newInbound.settings = Inbound.Settings.fromJson(inbound.protocol, filteredSettings);
+ this.searchedInbounds.push(newInbound);
+ }
+ }
+ });
+ }
+ },
+ toggleFilter(){
+ if(this.enableFilter) {
+ this.searchKey = '';
+ } else {
+ this.filterBy = '';
+ this.searchedInbounds = this.dbInbounds.slice();
+ }
+ },
generalActions(action) {
switch (action.key) {
case "export":
diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml
index 8a95ca92..075bf6e9 100644
--- a/web/translation/translate.en_US.toml
+++ b/web/translation/translate.en_US.toml
@@ -11,7 +11,7 @@
"enable" = "Enable"
"protocol" = "Protocol"
"search" = "Search"
-
+"filter" = "Filter"
"loading" = "Loading"
"second" = "Second"
"minute" = "Minute"
diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml
index c7332d7f..9e31f4ef 100644
--- a/web/translation/translate.fa_IR.toml
+++ b/web/translation/translate.fa_IR.toml
@@ -11,7 +11,7 @@
"enable" = "فعال"
"protocol" = "پروتکل"
"search" = "جستجو"
-
+"filter" = "فیلتر"
"loading" = "در حال بروزرسانی..."
"second" = "ثانیه"
"minute" = "دقیقه"
diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml
index 0a2f5246..052d7959 100644
--- a/web/translation/translate.ru_RU.toml
+++ b/web/translation/translate.ru_RU.toml
@@ -11,7 +11,7 @@
"enable" = "включить"
"protocol" = "протокол"
"search" = "поиск"
-
+"filter" = "Фильтр"
"loading" = "загрузка"
"second" = "секунда"
"minute" = "минута"
diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml
index c4d29d64..a1205447 100644
--- a/web/translation/translate.zh_Hans.toml
+++ b/web/translation/translate.zh_Hans.toml
@@ -11,7 +11,7 @@
"enable" = "启用"
"protocol" = "协议"
"search" = "搜尋"
-
+"filter" = "过滤器"
"loading" = "加载中"
"second" = "秒"
"minute" = "分钟"