ccpo approval form script
This commit is contained in:
28
js/components/forms/ccpo_approval.js
Normal file
28
js/components/forms/ccpo_approval.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import textinput from '../text_input'
|
||||
|
||||
export default {
|
||||
name: 'ccpo-approval',
|
||||
|
||||
components: {
|
||||
textinput
|
||||
},
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
approving: false,
|
||||
denying: false
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
setReview: function (e) {
|
||||
if (e.target.value === 'approving') {
|
||||
this.approving = true
|
||||
this.denying = false
|
||||
} else {
|
||||
this.approving = false
|
||||
this.denying = true
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user