Add more permissions

This commit is contained in:
Simon Pocrnjič
2025-10-31 10:16:38 +01:00
parent 7d4d18143d
commit ed4f67effb
18 changed files with 404 additions and 193 deletions
@@ -35,6 +35,7 @@ const props = defineProps({
segments: { type: Array, default: () => [] },
all_segments: { type: Array, default: () => [] },
templates: { type: Array, default: () => [] }, // active document templates (latest per slug)
edit: { type: Boolean, default: () => false },
});
// Debug: log incoming contract balances (remove after fix)
@@ -484,7 +485,7 @@ const closePaymentsDialog = () => {
>
Opis</FwbTableHeadCell
>
<FwbTableHeadCell class="w-px" />
<FwbTableHeadCell class="w-px" v-if="edit" />
</FwbTableHead>
<FwbTableBody>
<template v-for="(c, i) in contracts" :key="c.uuid || i">
@@ -497,7 +498,7 @@ const closePaymentsDialog = () => {
<span class="text-gray-700">{{
contractActiveSegment(c)?.name || "-"
}}</span>
<Dropdown align="left">
<Dropdown align="left" v-if="edit">
<template #trigger>
<button
type="button"
@@ -701,7 +702,7 @@ const closePaymentsDialog = () => {
</Dropdown>
</div>
</FwbTableCell>
<FwbTableCell class="text-right whitespace-nowrap">
<FwbTableCell class="text-right whitespace-nowrap" v-if="edit">
<Dropdown align="right" width="56">
<template #trigger>
<button