2
0
mirror of https://github.com/frappe/books.git synced 2025-02-11 08:28:47 +00:00
books/src/components/StatusBadge.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
337 B
Vue
Raw Normal View History

<template>
<Badge class="text-xs flex-center px-3 ml-2" :color="color" v-if="status">{{
status
}}</Badge>
</template>
<script>
import { statusColor } from 'src/utils/colors';
export default {
name: 'StatusBadge',
props: ['status'],
computed: {
color() {
return statusColor[this.status];
},
},
};
</script>