Studio: fix path
This commit is contained in:
parent
5d1c93396d
commit
aece3d4d68
3 changed files with 5 additions and 6 deletions
|
@ -193,13 +193,12 @@
|
||||||
{/if}
|
{/if}
|
||||||
</QuestionPreview>
|
</QuestionPreview>
|
||||||
{:else if schema.hints.types}
|
{:else if schema.hints.types}
|
||||||
<SchemaBasedMultiType {state} path={fusePath(i, [])} schema={schemaForMultitype()} />
|
<SchemaBasedMultiType {state} {path} schema={schemaForMultitype()} />
|
||||||
{:else}
|
{:else}
|
||||||
{#each subparts as subpart}
|
{#each subparts as subpart}
|
||||||
<SchemaBasedInput
|
<SchemaBasedInput
|
||||||
{state}
|
{state}
|
||||||
path={fusePath(i, [subpart.path.at(-1)])}
|
{path}
|
||||||
schema={subpart}
|
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -92,14 +92,14 @@ export abstract class EditJsonState<T> {
|
||||||
await this.server.update(id, config, this.category)
|
await this.server.update(id, config, this.category)
|
||||||
})
|
})
|
||||||
this.messages = this.createMessagesStore()
|
this.messages = this.createMessagesStore()
|
||||||
this.register(["credits"], this.osmConnection.userDetails.mapD(u => u.name), false)
|
|
||||||
this.register(["credits:uid"], this.osmConnection.userDetails.mapD(u => u.uid), false)
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public startSavingUpdates(enabled = true) {
|
public startSavingUpdates(enabled = true) {
|
||||||
this.sendingUpdates = enabled
|
this.sendingUpdates = enabled
|
||||||
|
this.register(["credits"], this.osmConnection.userDetails.mapD(u => u.name), false)
|
||||||
|
this.register(["credits:uid"], this.osmConnection.userDetails.mapD(u => u.uid), false)
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
this.configuration.ping()
|
this.configuration.ping()
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
<ShowConversionMessage {message} />
|
<ShowConversionMessage {message} />
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
{:else if subparts.length === 0}
|
{:else if subparts.length === 0}
|
||||||
<!-- We need an array of values, so we use the typehint of the _parent_ element as field -->
|
<!-- We need an array of values, so we use the typehint of the _parent_ element as field -->
|
||||||
{#each $currentValue as value, i}
|
{#each $currentValue as value, i}
|
||||||
<div class="flex w-full">
|
<div class="flex w-full">
|
||||||
|
|
Loading…
Reference in a new issue