We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da348f2 + 0248b5c commit a1be1c2Copy full SHA for a1be1c2
apps/desktop/src/components/v3/MultiStackCreateNew.svelte
@@ -91,6 +91,13 @@
91
}
92
93
94
+ function showAndPrefillName() {
95
+ createRefModal?.show();
96
+ stackService.newBranchName(projectId).then((name) => {
97
+ createRefName = name.data || '';
98
+ });
99
+ }
100
+
101
// TODO: it would be nice to remember the last selected option for the next time the modal is opened
102
</script>
103
@@ -99,7 +106,7 @@
106
type="button"
107
class="new-stack-btn"
108
class:no-stacks={noStacks}
- onclick={() => createRefModal?.show()}
109
+ onclick={() => showAndPrefillName()}
110
bind:this={el}
104
111
onkeydown={handleArrowNavigation}
105
112
>
0 commit comments