bulk menu and some cleanup, not finished yet
This commit is contained in:
parent
bab5e6ee63
commit
ec5dbe1792
11 changed files with 595 additions and 243 deletions
36
src/components/confirm_modal/generic_confirm.js
Normal file
36
src/components/confirm_modal/generic_confirm.js
Normal 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')
|
||||
}
|
||||
}
|
||||
}
|
||||
19
src/components/confirm_modal/generic_confirm.vue
Normal file
19
src/components/confirm_modal/generic_confirm.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue