mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
* add dark mode for label * fix dark issue in customer view page * fix remaining label for dark mode --------- Co-authored-by: yashkanakiya <yashkanakiya281297@gmail.com>
47 lines
950 B
Vue
47 lines
950 B
Vue
<template>
|
|
<div class="mb-6">
|
|
<div
|
|
class="z-20 text-sm font-semibold leading-5 text-primary-400 float-right"
|
|
>
|
|
<SelectNotePopup :type="type" @select="onSelectNote" />
|
|
</div>
|
|
<label class="text-gray-800 font-medium mb-4 text-sm dark:text-gray-300">
|
|
{{ $t('invoices.notes') }}
|
|
</label>
|
|
<BaseCustomInput
|
|
v-model="store[storeProp].notes"
|
|
:content-loading="store.isFetchingInitialSettings"
|
|
:fields="fields"
|
|
class="mt-1"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue'
|
|
import SelectNotePopup from '../SelectNotePopup.vue'
|
|
|
|
const props = defineProps({
|
|
store: {
|
|
type: Object,
|
|
default: null,
|
|
},
|
|
storeProp: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
fields: {
|
|
type: Object,
|
|
default: null,
|
|
},
|
|
type: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
})
|
|
|
|
function onSelectNote(data) {
|
|
props.store[props.storeProp].notes = '' + data.notes
|
|
}
|
|
</script>
|