Many Changes

This commit is contained in:
2024-02-01 21:00:59 +01:00
parent fe74e7d91b
commit 34d1eb9c71
18 changed files with 493 additions and 374 deletions

View File

@@ -36,7 +36,7 @@ const historyItems = computed(() => {
items = dataStore.historyItems.filter(i => i.document === elementId)
}
return items.reverse()
return items
})
const addHistoryItemData = ref({
@@ -63,7 +63,7 @@ const addHistoryItem = async () => {
const {data,error} = await supabase
.from("historyItems")
.from("historyitems")
.insert([addHistoryItemData.value])
.select()
@@ -139,10 +139,10 @@ const renderText = (text) => {
v-else
/>
<div>
<h3 v-if="item.user">{{dataStore.profiles.find(profile => profile.id === item.user) ? dataStore.profiles.find(profile => profile.id === item.user).fullName : ""}}</h3>
<h3 v-if="item.user">{{dataStore.getProfileById(item.user) ? dataStore.getProfileById(item.user).fullName : ""}}</h3>
<h3 v-else>Spaces 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>
<span class="text-gray-500">{{dayjs(item.created_at).format("DD.MM.YY HH:mm")}}</span>
</div>
</div>