mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-24 07:46:30 +00:00
461be2afca
* initial UI for currency selection * add task to purge invitation tokens * group API contracts * fix type import * use auth middleware * add currency setting support (UI) * use group settings for format currency * fix casing
22 lines
357 B
Vue
22 lines
357 B
Vue
<template>
|
|
{{ value }}
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const props = defineProps({
|
|
amount: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
});
|
|
|
|
const fmt = await useFormatCurrency();
|
|
|
|
const value = computed(() => {
|
|
if (!props.amount || props.amount === "0") {
|
|
return "";
|
|
}
|
|
|
|
return fmt(props.amount);
|
|
});
|
|
</script>
|