outbound tag validation #1286

This commit is contained in:
Alireza Ahmadi
2023-12-05 23:03:38 +01:00
parent 1bbef6d612
commit aa19637288
10 changed files with 18 additions and 8 deletions
+4 -2
View File
@@ -747,7 +747,8 @@
}
outModal.close();
},
isEdit: false
isEdit: false,
tags: this.templateSettings.outbounds.map(obj => obj.tag)
});
},
editOutbound(index){
@@ -760,7 +761,8 @@
this.outboundSettings = JSON.stringify(this.templateSettings.outbounds);
outModal.close();
},
isEdit: true
isEdit: true,
tags: this.outboundData.filter((o) => o.key != index ).map(obj => obj.tag)
});
},
deleteOutbound(index){