Skip to content

Commit 13385b5

Browse files
committed
refactor: use ButtonStyled
Signed-off-by: Evan Song <theevansong@gmail.com>
1 parent 2e9e89f commit 13385b5

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
<template>
22
<div
3+
data-pyro-save-banner
34
class="save-banner fixed bottom-8 left-4 right-4 z-50 mx-auto h-fit w-full max-w-4xl rounded-2xl border-2 border-solid border-divider bg-bg-raised p-4 transition-all duration-300"
45
>
56
<div class="flex flex-col items-center justify-between gap-2 md:flex-row">
67
<span class="font-bold text-contrast">Careful, you have unsaved changes!</span>
78
<div class="flex gap-2">
8-
<Button transparent :disabled="props.isUpdating" @click="props.reset"> Reset </Button>
9-
<Button color="primary" :disabled="props.isUpdating" @click="props.save">
10-
{{ props.isUpdating ? "Saving..." : "Save" }}
11-
</Button>
12-
<Button
9+
<ButtonStyled type="transparent" color="standard" transparent :disabled="props.isUpdating">
10+
<button @click="props.reset">Reset</button>
11+
</ButtonStyled>
12+
<ButtonStyled type="standard" color="brand" :disabled="props.isUpdating">
13+
<button @click="props.save">{{ props.isUpdating ? "Saving..." : "Save" }}</button>
14+
</ButtonStyled>
15+
<ButtonStyled
1316
v-if="props.restart"
14-
color="primary"
17+
type="standard"
18+
color="brand"
1519
:disabled="props.isUpdating"
16-
@click="saveAndRestart"
1720
>
18-
{{ props.isUpdating ? "Saving..." : "Save & Restart" }}
19-
</Button>
21+
<button @click="saveAndRestart">
22+
{{ props.isUpdating ? "Saving..." : "Save & Restart" }}
23+
</button>
24+
</ButtonStyled>
2025
</div>
2126
</div>
2227
</div>
2328
</template>
2429

2530
<script setup lang="ts">
26-
import { Button } from "@modrinth/ui";
31+
import { ButtonStyled } from "@modrinth/ui";
2732
import type { Server } from "~/composables/pyroServers";
2833
2934
const props = defineProps<{

0 commit comments

Comments
 (0)