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
@@ -14,6 +14,7 @@ library.add(faTrash, faEllipsisVertical, faCopy);
const props = defineProps({
client_case: Object,
activities: Object,
edit: Boolean,
});
const fmtDate = (d) => {
@@ -91,11 +92,11 @@ const copyToClipboard = async (text) => {
// You could add a toast notification here if available
} catch (err) {
// Fallback for older browsers
const textArea = document.createElement('textarea');
const textArea = document.createElement("textarea");
textArea.value = text;
document.body.appendChild(textArea);
textArea.select();
document.execCommand('copy');
document.execCommand("copy");
document.body.removeChild(textArea);
}
};
@@ -115,7 +116,7 @@ const copyToClipboard = async (text) => {
<th>Opomba</th>
<th>Obljuba</th>
<th>Dodal</th>
<th class="w-8"></th>
<th class="w-8" v-if="edit"></th>
</tr>
</thead>
<tbody>
@@ -174,7 +175,9 @@ const copyToClipboard = async (text) => {
</template>
<template #content>
<div class="relative" @click.stop>
<div class="flex items-center justify-between p-1 border-b border-gray-200">
<div
class="flex items-center justify-between p-1 border-b border-gray-200"
>
<span class="text-xs font-medium text-gray-600">Opomba</span>
<button
@click="copyToClipboard(row.note)"
@@ -226,7 +229,7 @@ const copyToClipboard = async (text) => {
>
</div>
</td>
<td class="py-2 pl-2 pr-2 align-middle text-right">
<td class="py-2 pl-2 pr-2 align-middle text-right" v-if="edit">
<Dropdown align="right" width="30">
<template #trigger>
<button