bulk menu and some cleanup, not finished yet

This commit is contained in:
luce 2025-08-18 16:47:18 +02:00
commit ec5dbe1792
11 changed files with 595 additions and 243 deletions

View file

@ -0,0 +1,36 @@
import ConfirmModal from './confirm_modal.vue'
//import Select from 'src/components/select/select.vue'
export default {
props: {
callback: {
type: Function
},
title: {
type: String
},
cancelText: {
type: String
},
confirmText: {
type: String
}
},
emits: ['hide', 'show'],
data: () => ({
showing: false
}),
components: {
ConfirmModal
},
methods: {
show () {
this.showing = true
this.$emit('show')
},
hide () {
this.showing = false
this.$emit('hide')
}
}
}

View file

@ -0,0 +1,19 @@
<template>
<ConfirmModal
v-if="showing"
:title="title"
:cancel-text="cancelText"
:confirm-text="confirmText"
@accepted="callback"
@cancelled="hide"
/>
</template>
<script src="./generic_confirm.js" />
<style lang="scss">
.expiry-amount {
width: 4em;
text-align: right;
}
</style>