Skip to content

Commit e08fc25

Browse files
committed
child table restoring and suspending
1 parent 87528c3 commit e08fc25

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/utils/crud/mixins/child.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,21 @@ export default {
7272
this.createChildDialog(this.childItemName)
7373
},
7474
suspend (id) {
75+
let obj = {}
76+
obj[this.activeColumnName] = 0
7577
this.updateChild([
7678
id,
77-
{
78-
active: 0
79-
},
79+
obj,
8080
this.$t('global.alerts.suspended'),
8181
this.path
8282
])
8383
},
8484
restore (id) {
85+
let obj = {}
86+
obj[this.activeColumnName] = 1
8587
this.updateChild([
8688
id,
87-
{
88-
active: 1
89-
},
89+
obj,
9090
this.$t('global.alerts.restored'),
9191
this.path
9292
])

0 commit comments

Comments
 (0)