|
@@ -7,10 +7,11 @@
|
|
|
<a-form-item label='{{ i18n "pages.client.method" }}'>
|
|
|
<a-select v-model="clientsBulkModal.emailMethod" buttonStyle="solid" style="width: 350px" :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''">
|
|
|
<a-select-option :value="0">Random</a-select-option>
|
|
|
- <a-select-option :value="1">Random_Prefix</a-select-option>
|
|
|
- <a-select-option :value="2">Random_Prefix+Num</a-select-option>
|
|
|
- <a-select-option :value="3">Random_Prefix+Num+Postfix</a-select-option>
|
|
|
- <a-select-option :value="4">Random_Prefix+Num@Telegram Username</a-select-option>
|
|
|
+ <a-select-option :value="1">Random+Prefix</a-select-option>
|
|
|
+ <a-select-option :value="2">Random+Prefix+Num</a-select-option>
|
|
|
+ <a-select-option :value="3">Random+Prefix+Num+Postfix</a-select-option>
|
|
|
+ <a-select-option :value="4">Random+Prefix+Num@Telegram Username</a-select-option>
|
|
|
+ <a-select-option :value="5">Prefix+Num+Postfix [ BE CAREFUL! ]</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item><br />
|
|
|
<a-form-item v-if="clientsBulkModal.emailMethod>1">
|
|
@@ -91,11 +92,12 @@
|
|
|
start=0;
|
|
|
end=clientsBulkModal.quantity;
|
|
|
}
|
|
|
- prefix = (method>0 && clientsBulkModal.emailPrefix.length>0) ? "_" + clientsBulkModal.emailPrefix : "";
|
|
|
+ prefix = (method>0 && clientsBulkModal.emailPrefix.length>0) ? clientsBulkModal.emailPrefix : "";
|
|
|
useNum=(method>1);
|
|
|
postfix = (method>2 && clientsBulkModal.emailPostfix.length>0) ? (method == 4 ? "@" : "") + clientsBulkModal.emailPostfix : "";
|
|
|
for (let i = start; i < end; i++) {
|
|
|
newClient = clientsBulkModal.newClient(clientsBulkModal.dbInbound.protocol);
|
|
|
+ if(method==5) newClient.email = "";
|
|
|
newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix;
|
|
|
newClient._totalGB = clientsBulkModal.totalGB;
|
|
|
newClient._expiryTime = clientsBulkModal.expiryTime;
|