2023-04-19 20:30:45 +02:00
|
|
|
<script setup lang="ts">
|
|
|
|
import _ from 'lodash';
|
2023-05-28 23:13:24 +02:00
|
|
|
import SpanCopyable from '@/components/SpanCopyable.vue';
|
2023-04-19 20:30:45 +02:00
|
|
|
|
|
|
|
const props = withDefaults(defineProps<{ label: string; oldValue?: string; newValue?: string }>(), {
|
|
|
|
label: '',
|
|
|
|
oldValue: '',
|
|
|
|
newValue: '',
|
|
|
|
});
|
|
|
|
const { label, oldValue, newValue } = toRefs(props);
|
|
|
|
|
|
|
|
const testId = computed(() => _.kebabCase(label.value));
|
|
|
|
</script>
|
|
|
|
|
2023-05-28 23:13:24 +02:00
|
|
|
<template>
|
|
|
|
<tr>
|
2023-06-25 15:49:43 +02:00
|
|
|
<td font-bold>
|
|
|
|
{{ label }}
|
2023-05-28 23:13:24 +02:00
|
|
|
</td>
|
|
|
|
<td :data-test-id="`${testId}.old`">
|
|
|
|
<SpanCopyable :value="oldValue" class="monospace" />
|
|
|
|
</td>
|
|
|
|
<td :data-test-id="`${testId}.new`">
|
|
|
|
<SpanCopyable :value="newValue" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</template>
|