pleroma-fe/src/components/confirm_modal/text_confirm.js
2025-09-15 13:37:08 +02:00

41 lines
682 B
JavaScript

import ConfirmModal from './confirm_modal.vue'
//import Select from 'src/components/select/select.vue'
export default {
props: {
title: {
type: String
},
message: {
type: String
},
cancelText: {
type: String
},
confirmText: {
type: String
}
},
emits: ['hide', 'show', 'action'],
data: () => ({
showing: false,
text: ""
}),
components: {
ConfirmModal
},
methods: {
show () {
this.showing = true
this.$emit('show')
},
hide () {
this.showing = false
this.$emit('hide')
},
doWithText () {
this.$emit('action', this.text)
this.hide()
}
}
}