wip, ignore, i just want this pushed

This commit is contained in:
luce 2025-09-09 18:36:30 +02:00
commit 3a6dac7ce5
7 changed files with 254 additions and 19 deletions

View file

@ -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()
}
}
}

View file

@ -4,7 +4,7 @@
:title="title"
:cancel-text="cancelText"
:confirm-text="confirmText"
@accepted="callback"
@accepted="doGeneric"
@cancelled="hide"
/>
</template>