Skip to content

Commit ad8e603

Browse files
committed
chore: correctly disable buttons, again
Signed-off-by: Evan Song <theevansong@gmail.com>
1 parent 13385b5 commit ad8e603

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

apps/frontend/src/components/ui/servers/SaveBanner.vue

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@
66
<div class="flex flex-col items-center justify-between gap-2 md:flex-row">
77
<span class="font-bold text-contrast">Careful, you have unsaved changes!</span>
88
<div class="flex gap-2">
9-
<ButtonStyled type="transparent" color="standard" transparent :disabled="props.isUpdating">
10-
<button @click="props.reset">Reset</button>
9+
<ButtonStyled type="transparent" color="standard" transparent>
10+
<button :disabled="props.isUpdating" @click="props.reset">Reset</button>
1111
</ButtonStyled>
12-
<ButtonStyled type="standard" color="brand" :disabled="props.isUpdating">
13-
<button @click="props.save">{{ props.isUpdating ? "Saving..." : "Save" }}</button>
12+
<ButtonStyled type="standard" color="brand">
13+
<button :disabled="props.isUpdating" @click="props.save">
14+
{{ props.isUpdating ? "Saving..." : "Save" }}
15+
</button>
1416
</ButtonStyled>
15-
<ButtonStyled
16-
v-if="props.restart"
17-
type="standard"
18-
color="brand"
19-
:disabled="props.isUpdating"
20-
>
21-
<button @click="saveAndRestart">
17+
<ButtonStyled v-if="props.restart" type="standard" color="brand">
18+
<button :disabled="props.isUpdating" @click="saveAndRestart">
2219
{{ props.isUpdating ? "Saving..." : "Save & Restart" }}
2320
</button>
2421
</ButtonStyled>

0 commit comments

Comments
 (0)