Skip to content

Commit b5e4a01

Browse files
Re-Added form title
1 parent f6dde1f commit b5e4a01

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

app/frontend/src/components/designer/FormDesigner.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ const designerOptions = computed(() => {
131131
};
132132
});
133133
134+
const DISPLAY_VERSION = computed(() =>
135+
form.value?.versions?.length ? form.value.versions.length + 1 : 1
136+
);
137+
134138
// ---------------------------------------------------------------------------------------------------
135139
// FormIO event handlers
136140
// ---------------------------------------------------------------------------------------------------
@@ -536,6 +540,12 @@ async function loadFile(event) {
536540
defineExpose({ designerOptions, reRenderFormIo });
537541
</script>
538542
<template>
543+
<div class="text-center mx-4">
544+
<h4 v-if="form.name">
545+
{{ form.name }}
546+
</h4>
547+
<em> Version: {{ DISPLAY_VERSION }} </em>
548+
</div>
539549
<div :class="{ 'dir-rtl': isRTL }">
540550
<FloatButton
541551
v-model:form-schema="formSchema"

0 commit comments

Comments
 (0)