Skip to content

Commit

Permalink
🎨: add template name to the title in CreateForm
Browse files Browse the repository at this point in the history
  • Loading branch information
itisAliRH authored and mvdbeek committed Oct 11, 2024
1 parent 99c22af commit 21a842d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/FileSources/Instances/CreateForm.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { toRef } from "vue";
import { computed, toRef } from "vue";
import type { FileSourceTemplateSummary, UserFileSourceModel } from "@/api/fileSources";
import { useConfigurationTemplateCreation } from "@/components/ConfigTemplates/useConfigurationTesting";
Expand All @@ -12,7 +12,7 @@ interface CreateFormProps {
uuid?: string;
}
const props = defineProps<CreateFormProps>();
const title = "Create a new file source for your data";
const title = computed(() => `Create a ${props.template.name} File Source`);
const emit = defineEmits<{
(e: "created", fileSource: UserFileSourceModel): void;
Expand Down

0 comments on commit 21a842d

Please sign in to comment.