Changes
This commit is contained in:
@@ -63,11 +63,11 @@ const historyItems = computed(() => {
|
||||
})
|
||||
const addHistoryItemData = ref({
|
||||
text: "",
|
||||
user: ""
|
||||
})
|
||||
|
||||
const addHistoryItem = async () => {
|
||||
addHistoryItemData.value.user = user.value.id
|
||||
console.log(addHistoryItemData.value)
|
||||
addHistoryItemData.value.createdBy = dataStore.activeProfile.id
|
||||
|
||||
if(type === "customer") {
|
||||
addHistoryItemData.value.customer = elementId
|
||||
@@ -197,7 +197,7 @@ const renderText = (text) => {
|
||||
/>
|
||||
<div>
|
||||
<h3 v-if="item.createdBy">{{dataStore.getProfileById(item.createdBy) ? dataStore.getProfileById(item.createdBy).fullName : ""}}</h3>
|
||||
<h3 v-else>Spaces Bot</h3>
|
||||
<h3 v-else>FEDEO Bot</h3>
|
||||
<span v-html="renderText(item.text)"/><br>
|
||||
<span class="text-gray-500">{{dayjs(item.created_at).format("DD.MM.YY HH:mm")}}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user