mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-28 00:11:08 -04:00
Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
<transition name="fade" mode="out-in">
|
<transition name="fade" mode="out-in">
|
||||||
<router-view/>
|
<router-view/>
|
||||||
</transition>
|
</transition>
|
||||||
<TheFooter/>
|
<TheFooter v-if="!isStorageWordpress"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -27,6 +27,7 @@ import TeamModal from '@/components/team/TeamModal';
|
|||||||
import TheFooter from '@/components/TheFooter';
|
import TheFooter from '@/components/TheFooter';
|
||||||
import CustomizationsModal from '@/components/invoices/CustomizationsModal';
|
import CustomizationsModal from '@/components/invoices/CustomizationsModal';
|
||||||
import ImportModal from '../../components/ImportModal';
|
import ImportModal from '../../components/ImportModal';
|
||||||
|
import config from '@/config/app.config';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
directives: {
|
directives: {
|
||||||
@ -44,6 +45,9 @@ export default {
|
|||||||
...mapGetters({
|
...mapGetters({
|
||||||
team: 'teams/team',
|
team: 'teams/team',
|
||||||
}),
|
}),
|
||||||
|
isStorageWordpress() {
|
||||||
|
return config.storageType === 'wordpress';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -4,8 +4,11 @@
|
|||||||
<div class="col-12 mb-4 pr-0 d-flex justify-content-between">
|
<div class="col-12 mb-4 pr-0 d-flex justify-content-between">
|
||||||
<h4 class="mb-0">{{ $t('title') }}</h4>
|
<h4 class="mb-0">{{ $t('title') }}</h4>
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-sm btn-outline-dark" @click="createNewInvoice">{{ $t('new_invoice') }}</button>
|
<button class="btn btn-sm btn-outline-dark"
|
||||||
<b-dropdown variant="link" size="sm" no-caret right>
|
:class="{ 'mr-3': !isStorageLocal }"
|
||||||
|
@click="createNewInvoice">{{ $t('new_invoice') }}
|
||||||
|
</button>
|
||||||
|
<b-dropdown variant="link" size="sm" no-caret right v-if="isStorageLocal">
|
||||||
<template slot="button-content">
|
<template slot="button-content">
|
||||||
<i class="material-icons">more_vert</i>
|
<i class="material-icons">more_vert</i>
|
||||||
</template>
|
</template>
|
||||||
@ -27,6 +30,7 @@
|
|||||||
import { BDropdown, BDropdownItem } from 'bootstrap-vue';
|
import { BDropdown, BDropdownItem } from 'bootstrap-vue';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import InvoicesList from '@/components/invoices/InvoicesList';
|
import InvoicesList from '@/components/invoices/InvoicesList';
|
||||||
|
import config from '@/config/app.config';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'invoices',
|
name: 'invoices',
|
||||||
@ -40,6 +44,9 @@ export default {
|
|||||||
...mapGetters({
|
...mapGetters({
|
||||||
team: 'teams/team',
|
team: 'teams/team',
|
||||||
}),
|
}),
|
||||||
|
isStorageLocal() {
|
||||||
|
return config.storageType === 'local';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
createNewInvoice() {
|
createNewInvoice() {
|
||||||
|
|||||||
Reference in New Issue
Block a user