Skip to content

Commit 36ae69c

Browse files
committed
fix: hide button for new object
1 parent f428140 commit 36ae69c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/Element/Form/relation.twig

+2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
</button>
151151

152152
<template v-else>
153+
{% if object.id %}
153154
<button
154155
class="button button-primary button-primary-hover-module-{{ currentModule.name }} is-width-auto"
155156
:class="{'is-loading-spinner': resettingRelated}"
@@ -176,6 +177,7 @@
176177
<app-icon icon="carbon:save"></app-icon>
177178
<span class="ml-05">{{ __('Save') }}</span>
178179
</button>
180+
{% endif %}
179181

180182
<button
181183
class="button button-primary button-primary-hover-module-{{ currentModule.name }} is-width-auto"

0 commit comments

Comments
 (0)