Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/js/components/blueprints/Fields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default {
},
};

setTimeout(() => (this.pendingCreatedField = pending), 500); // wait for stack to close
this.pendingCreatedField = pending;
},

createField() {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/blueprints/Section.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default {
this.$toast.success(__('Field added'));

if (field.type === 'reference') {
this.$nextTick(() => (this.editingField = field._id));
this.editingField = field._id;
}
},

Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/portals/PortalTargets.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="portal-targets" :class="{ 'stacks-on-stacks': hasStacks, 'solo-narrow-stack': isSoloNarrowStack }">
<div v-for="(portal, i) in portals" :id="`portal-target-${portal.id}`" />
<div v-for="(portal, i) in portals" :key="portal.id" :id="`portal-target-${portal.id}`" />
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Stack/Stack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const hasStackHeaderComponent = hasComponent('StackHeader', slotProps);
const hasStackContentComponent = hasComponent('StackContent', slotProps);
const isUsingOpenProp = computed(() => instance?.vnode.props?.hasOwnProperty('open'));
const portal = computed(() => stack.value ? `#portal-target-${stack.value.id}` : null);
const depth = computed(() => stack.value?.data.depth);
const depth = computed(() => stacks.stacks().findIndex(s => s.id === stack.value.id) + 1);
const isTopStack = computed(() => stacks.count() === depth.value);

const shouldAddHeader = computed(() => !!(props.title || props.icon) && !hasStackHeaderComponent.value);
Expand Down
1 change: 0 additions & 1 deletion resources/js/components/ui/Stack/Stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default class Stacks {
add(vm) {
return this.$portals.create('stack', {
type: 'stack',
depth: this.count() + 1,
vm,
});
}
Expand Down