Skip to content

Commit 7246c70

Browse files
committed
secrets: reverse order of confirm/cancel buttons
1 parent 8b52b21 commit 7246c70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/routes/team/[team]/[env]/secret/[secret]/+page.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@
182182
<AddSecretKv bind:changes existingKeys={secret.data.map((d) => d.name)} />
183183
</div>
184184
<div class="secret-edit-buttons">
185-
<Tooltip content="Persist all changes" arrow={false}>
186-
<Button variant="primary" size="small" on:click={updateSecret}>Save</Button>
187-
</Tooltip>
188185
<Tooltip content="Discard all changes" arrow={false}>
189186
<Button variant="secondary" size="small" on:click={discardChanges}>Cancel</Button>
190187
</Tooltip>
188+
<Tooltip content="Persist all changes" arrow={false}>
189+
<Button variant="primary" size="small" on:click={updateSecret}>Save</Button>
190+
</Tooltip>
191191
</div>
192192
{#if $updateSecretMutation.errors}
193193
<Alert variant="error">

src/routes/team/[team]/[env]/secret/[secret]/AddSecretKv.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
</TextField>
7777
</div>
7878
<svelte:fragment slot="footer">
79-
<Button variant="secondary" size="small" on:click={cancel}>Cancel</Button>
8079
<Button variant="primary" size="small" on:click={addKv}>Add</Button>
80+
<Button variant="secondary" size="small" on:click={cancel}>Cancel</Button>
8181
</svelte:fragment>
8282
</Modal>
8383

0 commit comments

Comments
 (0)