Skip to content

Commit d82fdbb

Browse files
committed
fixed formating
1 parent 2392d71 commit d82fdbb

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

ui/src/views/infra/HostEnableDisable.vue

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ export default {
9494
})
9595
},
9696
handleSubmit (e) {
97-
if (e) {
98-
e.preventDefault()
99-
}
10097
this.$refs.formRef.validate().then(() => {
10198
const values = toRaw(this.form)
10299
const data = {
@@ -106,7 +103,6 @@ export default {
106103
if (values.reason) {
107104
data.annotation = values.reason
108105
}
109-
<<<<<<< HEAD
110106
api('updateHost', data).then(_ => {
111107
this.$emit('close-action')
112108
this.$emit('refresh-data')
@@ -115,19 +111,6 @@ export default {
115111
})
116112
}).catch(() => {
117113
this.$message.error('Validation failed. Please check the inputs.')
118-
=======
119-
api('updateHost', data)
120-
.then(response => {
121-
this.$emit('refresh-data')
122-
this.$emit('close-action')
123-
})
124-
.catch(error => {
125-
console.error('Error updating host:', error)
126-
this.$emit('close-action')
127-
})
128-
}).catch(error => {
129-
console.error('Validation failed:', error)
130-
>>>>>>> 06ddb1abe6 (Auto update the host status)
131114
})
132115
}
133116
}

0 commit comments

Comments
 (0)