diff --git a/desk/src/components/knowledge-base-v2/KnowledgeBaseCategory.vue b/desk/src/components/knowledge-base-v2/KnowledgeBaseCategory.vue index 314ae97bf..e1b453ff9 100644 --- a/desk/src/components/knowledge-base-v2/KnowledgeBaseCategory.vue +++ b/desk/src/components/knowledge-base-v2/KnowledgeBaseCategory.vue @@ -24,51 +24,50 @@ - -
-

Sub-categories

- -
- -
-
{{ subCategory?.category_name }}
- - {{ subCategory.articles.length }} articles - +
+ +
+

Sub-categories

+ +
+ +
+
{{ subCategory?.category_name }}
+ + {{ subCategory.articles.length }} articles + +
+
+ +
+

+ {{ showAllArticles ? "All Articles" : "Articles" }} +

+ +
+ + +
+
+
+ No articles found
-
- -
-

- {{ showAllArticles ? "All Articles" : "Articles" }} -

- -
- - -
-
-
- No articles found
- + + + -
-
- {{ template.data.about }} +
+ +
+
-
+ +
-
- -
- - - -

- Please enter a subject to continue -

+ +
+

+ Please enter a subject to continue +

+ + + +
-
+
import { ref, computed, reactive, onMounted } from "vue"; import { useRoute, useRouter } from "vue-router"; -import { createResource, usePageMeta, Button, FormControl } from "frappe-ui"; +import { + createResource, + usePageMeta, + Button, + FormControl, + Breadcrumbs, +} from "frappe-ui"; import sanitizeHtml from "sanitize-html"; import { isEmpty } from "lodash"; import { useError } from "@/composables/error"; -import { UniInput } from "@/components"; +import { LayoutHeader, UniInput } from "@/components"; import TicketBreadcrumbs from "./ticket/TicketBreadcrumbs.vue"; import TicketNewArticles from "./ticket/TicketNewArticles.vue"; import TicketTextEditor from "./ticket/TicketTextEditor.vue"; @@ -180,6 +190,24 @@ function sanitize(html: string) { }); } +const breadcrumbs = computed(() => { + const items = [ + { + label: "Tickets", + route: { + name: "TicketsCustomer", + }, + }, + { + label: "New Ticket", + route: { + name: "TicketNew", + }, + }, + ]; + return items; +}); + usePageMeta(() => ({ title: "New Ticket", })); diff --git a/desk/src/pages/knowledge-base-v2/KnowledgeBasePublic.vue b/desk/src/pages/knowledge-base-v2/KnowledgeBasePublic.vue index c0efbb9de..9c02b4415 100644 --- a/desk/src/pages/knowledge-base-v2/KnowledgeBasePublic.vue +++ b/desk/src/pages/knowledge-base-v2/KnowledgeBasePublic.vue @@ -22,8 +22,7 @@ import { LayoutHeader } from "@/components"; import KnowledgeBaseSidebar from "@/components/knowledge-base-v2/KnowledgeBaseSidebar.vue"; import KnowledgeBaseCategory from "@/components/knowledge-base-v2/KnowledgeBaseCategory.vue"; import { useRouter } from "vue-router"; -import { Breadcrumbs, createResource, call } from "frappe-ui"; -import { reactive } from "vue"; +import { Breadcrumbs } from "frappe-ui"; const router = useRouter(); const defaultCategory = computed(