Skip to content

Commit

Permalink
Merge pull request #25 from InteractionDesignFoundation/22-fix-loadin…
Browse files Browse the repository at this point in the history
…g-stored-design

Fix loading advanced config (un-proxify config)
  • Loading branch information
lptn authored Nov 10, 2022
2 parents bcf20c0 + c2f49a0 commit 40cfe44
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"/js/field.js": "/js/field.js?id=eccb11b423a3c19387a78cd92c00d6db"
"/js/field.js": "/js/field.js?id=d7f5ebcae8e7d7b142c97b72844d51fd"
}
8 changes: 4 additions & 4 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
</button>
</div>

<unlayer-editor
<UnlayerEditor
class="form-input-bordered"
:style="{minHeight: containerHeight}"
ref="editor"
@load="editorLoaded"
:locale=field.config.locale
:projectId=field.config.projectId
:templateId="field.value ? null : field.config.templateId"
:options=field.config
:options=unProxy(field.config)
/>
</div>
</template>
</DefaultField>
</template>

<script>
import EmailEditor from './UnlayerEditor'
import UnlayerEditor from './UnlayerEditor.vue';
import { FormField, HandlesValidationErrors } from 'laravel-nova'
const defaultHeight = '700px';
Expand All @@ -42,7 +42,7 @@
mixins: [FormField, HandlesValidationErrors],
components: {
EmailEditor
UnlayerEditor,
},
props: ['resourceName', 'resourceId', 'field'],
Expand Down
2 changes: 0 additions & 2 deletions resources/js/components/UnlayerEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

<script>
export default {
name: 'unlayer-editor',
props: {
options: Object,
projectId: {
Expand Down

0 comments on commit 40cfe44

Please sign in to comment.