Fix: Use ActionSelect for Docker Host & validate input (#3864)

* Fix: Use ActionSelect Docker Host & validate input

* Fix: Handle docker host deleted while editing

* UI: Use add for ActionSelect & prevent delete instead
This commit is contained in:
Nelson Chan
2023-11-03 21:25:28 +08:00
committed by GitHub
parent fdfb572e09
commit b534fde265
5 changed files with 59 additions and 20 deletions

View File

@@ -68,7 +68,7 @@ export default {
Confirm,
},
props: {},
emits: [ "added" ],
emits: [ "added", "deleted" ],
data() {
return {
modal: null,
@@ -178,6 +178,7 @@ export default {
this.processing = false;
if (res.ok) {
this.$emit("deleted", this.id);
this.modal.hide();
}
});