[outbound] cmoplete importing links #656

This commit is contained in:
Alireza Ahmadi
2023-11-29 23:40:29 +01:00
parent e372575f58
commit 211d31390d
2 changed files with 92 additions and 4 deletions

View File

@@ -106,9 +106,17 @@
return this.outModal.outbound.canEnableTls();
},
convertLink(){
this.outModal.outbound = Outbound.fromLink(outModal.link);
this.outModal.toggleJson(true);
this.outModal.check();
newOutbound = Outbound.fromLink(outModal.link);
if(newOutbound){
this.outModal.outbound = newOutbound;
this.outModal.toggleJson(true);
this.outModal.check();
this.$message.success('Link imported successfully...');
outModal.link = '';
} else {
this.$message.error('Wrong Link!');
outModal.link = '';
}
},
},
});