File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
apps/frontend/src/components/ui/servers Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 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" ;
2732import type { Server } from " ~/composables/pyroServers" ;
2833
2934const props = defineProps <{
You can’t perform that action at this time.
0 commit comments