debian-mirror-gitlab/app/assets/javascripts/import_entities/components/import_status.vue

31 lines
521 B
Vue
Raw Normal View History

2019-07-07 11:18:12 +05:30
<script>
2021-04-29 21:17:54 +05:30
import { GlIcon } from '@gitlab/ui';
2019-07-07 11:18:12 +05:30
import STATUS_MAP from '../constants';
export default {
name: 'ImportStatus',
components: {
2021-04-29 21:17:54 +05:30
GlIcon,
2019-07-07 11:18:12 +05:30
},
props: {
status: {
type: String,
required: true,
},
},
computed: {
mappedStatus() {
return STATUS_MAP[this.status];
},
},
};
</script>
<template>
2021-04-29 21:17:54 +05:30
<div>
<gl-icon :name="mappedStatus.icon" :class="mappedStatus.iconClass" :size="12" class="gl-mr-2" />
<span>{{ mappedStatus.text }}</span>
2019-07-07 11:18:12 +05:30
</div>
</template>