chore: review fixes

This commit is contained in:
Muhsin Keloth
2024-05-22 15:03:10 +05:30
parent 023d3e0821
commit e847c34380
2 changed files with 13 additions and 14 deletions
@@ -38,7 +38,7 @@
</template>
<script setup>
import { useI18n } from 'dashboard/composables/useI18n';
import { computed, ref } from 'vue';
import { ref } from 'vue';
import LinkIssue from './LinkIssue.vue';
import CreateIssue from './CreateIssue.vue';
@@ -59,18 +59,16 @@ const selectedTabIndex = ref(0);
const emits = defineEmits(['close']);
const tabs = computed(() => {
return [
{
key: 0,
name: t('INTEGRATION_SETTINGS.LINEAR.CREATE'),
},
{
key: 1,
name: t('INTEGRATION_SETTINGS.LINEAR.LINK.TITLE'),
},
];
});
const tabs = ref([
{
key: 0,
name: t('INTEGRATION_SETTINGS.LINEAR.CREATE'),
},
{
key: 1,
name: t('INTEGRATION_SETTINGS.LINEAR.LINK.TITLE'),
},
]);
const onClose = () => {
emits('close');
};
@@ -25,7 +25,8 @@ const props = defineProps({
const emit = defineEmits(['unlink-issue']);
const formattedDate = computed(() => {
return format(new Date(props.issue.createdAt), 'hh:mm a, MMM dd');
const { createdAt } = props.issue;
return format(new Date(createdAt), 'hh:mm a, MMM dd');
});
const assignee = computed(() => {