IKHSAN
ENID Baca dalam Bahasa Indonesia

opendesk

Public
Branch
main
Latest commit
08d9f3328 October 2026

TicketBreadcrumbs.vue

Open raw
<template>
  <PageTitle>
    <template #title>
      <Breadcrumbs
        :items="[
          {
            label: 'Tickets',
            route: {
              name: parent,
            },
          },
          {
            label: ticket?.data?.subject || title,
            route: {
              name: current,
            },
          },
        ]"
      />
    </template>
    <template #right>
      <slot name="right" />
    </template>
  </PageTitle>
</template>

<script setup lang="ts">
import { inject } from "vue";
import { Breadcrumbs } from "frappe-ui";
import { PageTitle } from "@/components";
import { ITicket } from "./symbols";

interface P {
  parent: string;
  current: string;
  title?: string;
}

withDefaults(defineProps<P>(), {
  title: "",
});
const ticket = inject(ITicket);
</script>
bytes
814
lines
44
Type
vue
Latest commit
28 October 2026