Skip to content

Commit

Permalink
Add role with name in Gantt view (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj authored Feb 19, 2024
1 parent 9706c9e commit 515c9e1
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions resources/js/components/GanttRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"
/>
</td>
<td>{{ member.user.displayName }}</td>
<td class="tw-leading-tight">
<p class="tw-m-0">{{ member.user.displayName }}</p>
<small class="tw-text-xs tw-text-neutral-500">{{ member.role.label }}</small>
</td>
<td colspan="6">
<div
v-tooltip.top-center="toolTipText"
Expand All @@ -26,13 +29,35 @@
<script lang="ts">
import $ from "jquery";
import { dayjs } from "@/utils";
import { PropType } from "vue";
import { Membership } from "@/types";
$(function () {
$("[data-toggle='tooltip']").tooltip();
});
export default {
// eslint-disable-next-line vue/require-prop-types
props: ["member", "mindate", "maxdate", "showUnit", "filterList"],
props: {
member: {
type: Object as PropType<Membership>,
required: true,
},
mindate: {
type: Number,
required: true,
},
maxdate: {
type: Number,
required: true,
},
showUnit: {
type: Boolean,
default: true,
},
filterList: {
type: Boolean,
default: false,
},
},
emits: ["update:member"],
data() {
return {};
Expand Down

0 comments on commit 515c9e1

Please sign in to comment.