Skip to content

Commit

Permalink
fix: order list on dashboard (#568)
Browse files Browse the repository at this point in the history
* fix: order list on dashboard

* remove console
  • Loading branch information
ciniiia committed Nov 2, 2022
1 parent e70f53a commit 65c66a7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/DevMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
<v-list>
<router-link to="/login">
<v-list-item link>
<v-list-item-title>Customer Login</v-list-item-title>
<v-list-item-title>Login</v-list-item-title>
</v-list-item>
</router-link>
<router-link to="/">
<v-list-item link>
<v-list-item-title>Customer Dashboard</v-list-item-title>
<v-list-item-title>Dashboard</v-list-item-title>
</v-list-item>
</router-link>
<router-link to="/lab">
<v-list-item link>
<v-list-item-title>Lab Dashboard</v-list-item-title>
<v-list-item-title>Orders</v-list-item-title>
</v-list-item>
</router-link>
</v-list>
Expand Down
4 changes: 2 additions & 2 deletions src/components/NavigationDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
alertIcon,
version: "",
drawerButtons: [
{ text: "Dashboard", auth: true, route: { name: "lab-dashboard" } },
{ text: "Orders", auth: true, route: { name: "lab-dashboard" } },
{ text: "Account", auth: false, route: { name: "lab-dashboard-account" } },
{ text: "Services", auth: false, route: { name: "lab-dashboard-services" } },
{ text: "Order History", auth: false, route: { name: "lab-dashboard-order-history" } }
Expand Down Expand Up @@ -156,7 +156,7 @@ export default {
computeDisabledCondition() {
return this.drawerButtons.map(btn => {
if (btn.text === "Dashboard" || btn.text === "Customer Care") return { ...btn }
if (btn.text === "Orders" || btn.text === "Customer Care") return { ...btn }
return {
...btn,
auth: this.labAccount?.verificationStatus === "Verified"
Expand Down
3 changes: 3 additions & 0 deletions src/components/OrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import ServerSideDataTable from "@/components/DataTable/ServerSideDataTable"
import { queryDnaSamples, queryDnaTestResults } from "@/lib/polkadotProvider/query/geneticTesting"
import SearchBar from "@/components/DataTable/SearchBar"
import { getOrdersData } from "@/lib/api"
import serviceHandler from "@/lib/serviceHandler"
export default {
name: "LabOrderHistory",
Expand All @@ -61,6 +62,8 @@ export default {
SearchBar
},
mixins: [serviceHandler],
data: () => ({
headers: [
{ text: "Date", value: "_source.created_at" },
Expand Down
2 changes: 1 addition & 1 deletion src/router/routes/lab.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const labRoutes = [
path: "/",
name: "lab-dashboard",
meta: {
pageHeader: "Lab Dashboard",
pageHeader: "Orders",
breadcrumbs: [
{ text: "Lab", href: "/lab" },
{ text: "Orders", disabled: true }
Expand Down

0 comments on commit 65c66a7

Please sign in to comment.