Better back functionality

This commit is contained in:
2025-10-19 16:20:31 +01:00
parent f9cb8bcf24
commit acb728b60f
3 changed files with 79 additions and 9 deletions

View File

@@ -16,13 +16,15 @@
<ion-button @click="update">Update</ion-button>
<br>
<ion-button @click="archive">View older versions</ion-button>
<br>
<ion-button @click="settings">Settings</ion-button>
</ion-card-content>
</ion-card>
</template>
<script setup lang="ts">
import {IonButton, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle} from "@ionic/vue";
const emit = defineEmits<{(e: 'update'): void, (e: 'archive'): void, (e: "disconnect"): void}>();
const emit = defineEmits<{(e: 'update'): void, (e: 'archive'): void, (e: "disconnect"): void, (e: "settings"): void}>();
const update = () => {
emit("update");
@@ -36,6 +38,10 @@ const disconnect = () => {
emit("disconnect");
};
const settings = () => {
emit("settings")
}
</script>
<style scoped>
@@ -45,4 +51,4 @@ const disconnect = () => {
flex-direction: row;
flex-wrap: wrap;
}
</style>
</style>