Skip to content

Commit 104f416

Browse files
Stefan ErnstStefan Ernst
authored andcommitted
Workspace creation bugfix
1 parent 328bb0e commit 104f416

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

frontend/src/lib/pages/Dashboard.svelte

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,7 @@
228228
<div class="space-y-2">
229229
<button
230230
onclick={() => {
231-
window.dispatchEvent(new CustomEvent('open-create-modal'));
232-
setTimeout(() => {
233-
window.dispatchEvent(new CustomEvent('set-create-type', {
234-
detail: { type: 'work-item' }
235-
}));
236-
}, 50);
231+
window.dispatchEvent(new CustomEvent('show-create-modal', { detail: { type: 'work-item' } }));
237232
}}
238233
class="w-full text-left px-3 py-2.5 rounded-md border transition-colors group hover-bg"
239234
style="border-color: var(--ds-border);"

frontend/src/lib/workspaces/Workspaces.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
});
2525
2626
function startCreate() {
27-
window.dispatchEvent(new CustomEvent('set-create-type', { detail: { type: 'workspace' } }));
28-
window.dispatchEvent(new CustomEvent('open-create-modal'));
27+
window.dispatchEvent(new CustomEvent('show-create-modal', { detail: { type: 'workspace' } }));
2928
}
3029
3130
async function deleteWorkspace(workspace) {

0 commit comments

Comments
 (0)