2
0
mirror of https://github.com/frappe/books.git synced 2025-02-14 09:50:26 +00:00
books/src/components/StatusBadge.vue

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

23 lines
404 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>
2022-04-20 12:08:47 +05:30
import Badge from 'src/components/Badge';
import { statusColor } from '../colors';
export default {
name: 'StatusBadge',
props: ['status'],
components: {
Badge,
},
computed: {
color() {
return statusColor[this.status];
},
},
};
</script>