Skip to content

Commit 732ec21

Browse files
committed
Hide Plan Update button if no permission
1 parent d269b92 commit 732ec21

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lang/es_UY.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
"How it works": "Cómo funciona",
231231
"I understand the risks and want to proceed anyway": "Entiendo los riesgos y quiero continuar de todas formas",
232232
"Icon": "Icono",
233+
"Identifier": "Identificador",
233234
"If you prefer to invite a new Admin, email and firstname are required": "Si prefieres invitar a un nuevo Admin, el email y nombre son obligatorios",
234235
"If you were invited to a Project, please follow the link you received in your email.": "Si fuiste invitado a un Proyecto, por favor sigue el enlace que recibiste en tu email.",
235236
"Image": "Imagen",

resources/js/components/lottery/shared/ProjectPlan.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defineProps<{
1515
<div class="flex justify-between">
1616
{{ _('Project Layout Plan') }}
1717

18-
<Button as-child size="sm">
18+
<Button as-child size="sm" v-if="plan.allows.update">
1919
<Link :href="route('plans.edit', plan.id)">
2020
{{ _('Update') }}
2121
</Link>

0 commit comments

Comments
 (0)