Skip to content

Commit

Permalink
fix advanced editor for FR configs and loading FR configs
Browse files Browse the repository at this point in the history
  • Loading branch information
yileifeng committed May 21, 2024
1 parent bf8eacf commit dc01655
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/editor/helpers/custom-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="mt-4">
<json-editor
v-model="updatedConfig"
:lang="lang"
lang="en"
:mode="'text'"
:show-btns="true"
:expandedOnStart="true"
Expand Down Expand Up @@ -32,7 +32,6 @@ import { Validator } from '@/definitions';
export default class CustomEditorV extends Vue {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@Prop() config!: string;
@Prop() lang!: string;
@Prop() slideIndex!: number;
schemaUrl = './StorylinesSlideSchema.json';
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/metadata-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export default class MetadataEditorV extends Vue {
// Generate UUID for new product
this.uuid = (this.$route.params.uid as string) ?? (this.loadExisting ? undefined : uuidv4());
this.configLang = this.$route.params.configLang ? (this.$route.params.configLang as string) : 'en';
this.configLang = (this.$route.params.lang as string) || 'en';
// Initialize Storylines config and the configuration structure.
this.configs = { en: undefined, fr: undefined };
Expand Down
1 change: 0 additions & 1 deletion src/components/editor/slide-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@
<custom-editor
ref="editor"
:config="currentSlide"
:lang="lang"
:slideIndex="slideIndex"
@slide-edit="$emit('slide-edit')"
@config-edited="(slideConfig: Slide, save?: boolean = false) => $emit('custom-slide-updated', slideConfig, save)"
Expand Down

0 comments on commit dc01655

Please sign in to comment.