ip limit only if log is available

This commit is contained in:
Alireza Ahmadi
2024-03-12 21:53:32 +01:00
parent e7ae846823
commit 18af7047f8
3 changed files with 35 additions and 13 deletions

View File

@@ -63,7 +63,7 @@
</template>
<a-input v-model.trim="client.tgId"></a-input>
</a-form-item>
<a-form-item>
<a-form-item v-if="app.ipLimitEnable">
<template slot="label">
<a-tooltip>
<template slot="title">
@@ -75,7 +75,7 @@
</template>
<a-input-number v-model="client.limitIp" min="0"></a-input-number>
</a-form-item>
<a-form-item v-if="client.email && client.limitIp > 0 && isEdit">
<a-form-item v-if="app.ipLimitEnable && client.email && isEdit">
<template slot="label">
<a-tooltip>
<template slot="title">

View File

@@ -571,6 +571,7 @@
datepicker: 'gregorian',
tgBotEnable: false,
showAlert: false,
ipLimitEnable: false,
pageSize: 0,
isMobile: window.innerWidth <= 768,
},
@@ -618,6 +619,7 @@
this.pageSize = pageSize;
this.remarkModel = remarkModel;
this.datepicker = datepicker;
this.ipLimitEnable = ipLimitEnable;
}
},
setInbounds(dbInbounds) {