Skip to content

Commit

Permalink
[UXE-5366] Fix: standardize edge functions titles to display item nam…
Browse files Browse the repository at this point in the history
…es instead of product names (#2048)
  • Loading branch information
lfsigreja authored Jan 7, 2025
1 parent 786825b commit 860c308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/views/EdgeFunctions/EditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
})
const updateObject = ref({})
const language = ref(null)
const name = ref('')
const handleTrackSuccessEdit = () => {
tracker.product
Expand Down Expand Up @@ -67,7 +68,7 @@
<template>
<ContentBlock>
<template #heading>
<PageHeadingBlock pageTitle="Edit Edge Function">
<PageHeadingBlock :pageTitle="name">
<MobileCodePreview
:updateObject="updateObject"
:language="language"
Expand All @@ -87,6 +88,7 @@
<FormFieldsEditEdgeFunctions
v-model:preview-data="updateObject"
v-model:lang="language"
v-model:name="name"
/>
</template>
<template #action-bar="{ onSubmit, onCancel, loading }">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import { computed, ref, watch } from 'vue'
defineProps(['previewData', 'lang'])
const emit = defineEmits(['update:previewData', 'update:lang'])
const emit = defineEmits(['update:previewData', 'update:lang', 'update:name'])
const SPLITTER_PROPS = {
height: '50vh',
Expand All @@ -40,6 +40,7 @@
const unwatch = watch(name, () => {
initialCodeValue = code.value
initialJsonArgsValue = jsonArgs.value
emit('update:name', name.value)
if (initialCodeValue) {
unwatch()
Expand Down

0 comments on commit 860c308

Please sign in to comment.