3
0

Fix connection state from triggering unsaved changes alert when undeleted

This commit is contained in:
Kelani Tolulope
2023-11-06 16:15:14 +01:00
parent b0a75c1326
commit a3b92e4e77

View File

@@ -240,9 +240,12 @@ export default {
* Resource deleted, move back to the list
*/
this.connection.deletedAt = new Date()
this.initialConnectionState.deletedAt = this.connection.deletedAt
this.$router.push({ name: `system.connection` })
} else {
this.connection.deletedAt = null
this.initialConnectionState.deletedAt = null
}
})
.catch(this.toastErrorHandler(this.$t(`notification:connection.${op}.error`)))