wip, ignore, i just want this pushed
This commit is contained in:
parent
71cf3a52f2
commit
3a6dac7ce5
7 changed files with 254 additions and 19 deletions
|
|
@ -3,8 +3,9 @@ import ConfirmModal from './confirm_modal.vue'
|
|||
|
||||
export default {
|
||||
props: {
|
||||
callback: {
|
||||
type: Function
|
||||
action: {
|
||||
type: Function,
|
||||
require: true
|
||||
},
|
||||
title: {
|
||||
type: String
|
||||
|
|
@ -31,6 +32,10 @@ export default {
|
|||
hide () {
|
||||
this.showing = false
|
||||
this.$emit('hide')
|
||||
},
|
||||
doGeneric () {
|
||||
this.action()
|
||||
this.hide()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
:title="title"
|
||||
:cancel-text="cancelText"
|
||||
:confirm-text="confirmText"
|
||||
@accepted="callback"
|
||||
@accepted="doGeneric"
|
||||
@cancelled="hide"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue