Skip to content

Commit f2916b9

Browse files
authored
extra menu improvement (#316)
1 parent 72b9150 commit f2916b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/components/pages/forms/show/ExtraMenu.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</svg>
2525
</v-button>
2626
</template>
27-
<span v-if="form.visibility === 'draft'"
27+
<span v-if="isMainPage && form.visibility === 'draft'"
2828
class="block px-4 py-2 text-md text-gray-700 cursor-pointer dark:text-white hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 flex items-center"
2929
@click="showDraftFormWarningNotification"
3030
>
@@ -42,7 +42,7 @@
4242
View form
4343
</span>
4444

45-
<a v-else-if="isMainPage && user" v-track.view_form_click="{form_id:form.id, form_slug:form.slug}" :href="form.share_url"
45+
<a v-else-if="isMainPage" v-track.view_form_click="{form_id:form.id, form_slug:form.slug}" :href="form.share_url"
4646
target="_blank"
4747
class="block px-4 py-2 text-md text-gray-700 dark:text-white hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 flex items-center"
4848
>

0 commit comments

Comments
 (0)