Many Changes
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user