Comment out unused transaction tab in CollectedOrderInvoices.vue and replace Orders with InvoiceOrdersPagination in Orders.vue for improved maintainability.
This commit is contained in:
@@ -17,7 +17,7 @@ import InvoicingBillingPeriod
|
||||
|
||||
const tabs = ref([
|
||||
{ name: 'Overblik', slot: 'overview', icon: 'fas fa-chart-pie', hidden: false },
|
||||
{ name: SessionUser.objects.orders.meta.title, slot: 'transactions', icon: 'fas fa-shopping-cart', hidden: false },
|
||||
//{ name: SessionUser.objects.orders.meta.title, slot: 'transactions', icon: 'fas fa-shopping-cart', hidden: false },
|
||||
{ name: 'Periode', slot: 'period', icon: 'fas fa-calendar-alt', hidden: false },
|
||||
//{ name: 'Faktura pr. måned', slot: 'monthly', icon: 'fas fa-list', hidden: false },
|
||||
//{ name: 'Faktura pr. ordre', slot: 'orderly', icon: 'fas fa-check', hidden: false }
|
||||
@@ -70,9 +70,9 @@ onMounted(() => {
|
||||
<template #overview>
|
||||
<CollectedOrderInvoicesOverview />
|
||||
</template>
|
||||
<template #transactions>
|
||||
<!--<template #transactions>
|
||||
<InvoiceOrdersPagination :auto-load="true" :invoice-view="true"/>
|
||||
</template>
|
||||
</template>-->
|
||||
<template #period>
|
||||
<InvoicingBillingPeriod />
|
||||
</template>
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
<script setup>
|
||||
import { getOrders } from "@/components/shop/Orders.vue";
|
||||
import { showCreateOrderForm } from "@/components/forms/superUser/createOrderForm.vue";
|
||||
import SuperUserDashboardNavigation from "@/views/dashboards/superUserDashboard/SuperUserDashboardNavigation.vue";
|
||||
import PageTitle from "@/components/global/PageTitle.vue";
|
||||
import Orders from "@/components/displays/Orders.vue";
|
||||
import RestrictedPageWrapper from "@/components/page/wrappers/RestrictedPageWrapper.vue";
|
||||
import { SessionUser } from "@/components/session/token/SessionUser.vue";
|
||||
import InvoiceOrdersPagination
|
||||
from "@/components/displays/pagination/models/SuperUserDashboard/InvoiceOrdersPagination.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<RestrictedPageWrapper :hasPermission="SessionUser.canAccessSuperUser()">
|
||||
<SuperUserDashboardNavigation />
|
||||
<Orders />
|
||||
<InvoiceOrdersPagination :auto-load="true" :invoice-view="true"/>
|
||||
</RestrictedPageWrapper>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user