Extend database with more tables, rewrite API doc, improve API endpoints
This commit is contained in:
@@ -10,8 +10,7 @@ defineProps({
|
||||
type: String
|
||||
},
|
||||
subtitle: {
|
||||
type: String,
|
||||
default: ""
|
||||
type: String
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ModelRef } from 'vue';
|
||||
import actionDialog from './actionDialog.vue';
|
||||
import outlinedButton from './outlinedButton.vue';
|
||||
|
||||
const showDialog: ModelRef<boolean> = defineModel()
|
||||
|
||||
@@ -31,21 +32,19 @@ function confirmPressed() {
|
||||
</v-container>
|
||||
|
||||
<template #actions>
|
||||
<v-btn
|
||||
<outlined-button
|
||||
@click="showDialog = false"
|
||||
color="green"
|
||||
variant="outlined"
|
||||
>
|
||||
{{ $t("dialog.cancel") }}
|
||||
</v-btn>
|
||||
</outlined-button>
|
||||
|
||||
<v-btn
|
||||
<outlined-button
|
||||
@click="confirmPressed"
|
||||
color="red"
|
||||
variant="outlined"
|
||||
>
|
||||
{{ $t("dialog.confirm") }}
|
||||
</v-btn>
|
||||
</outlined-button>
|
||||
</template>
|
||||
</action-dialog>
|
||||
</template>
|
||||
19
software/src/components/outlinedButton.vue
Normal file
19
software/src/components/outlinedButton.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
defineProps({
|
||||
prependIcon: String,
|
||||
color: {
|
||||
type: String,
|
||||
default: "primary"
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-btn
|
||||
:prepend-icon="prependIcon"
|
||||
variant="outlined"
|
||||
:color="color"
|
||||
>
|
||||
<slot></slot>
|
||||
</v-btn>
|
||||
</template>
|
||||
Reference in New Issue
Block a user