@@ -22,10 +21,8 @@ const { entity, streamSource } = $defineProps<{
entity: T;
}>();
-const { messages, loadOlderLogs, isLoadingMore, opened, loading, error, eventSourceURL } = streamSource(
- toRef(() => entity),
-);
-const { loadingMore } = useLoggingContext();
+const { messages, opened, loading, error, eventSourceURL } = streamSource(toRef(() => entity));
+
const color = computed(() => {
if (error.value) return "error";
if (loading.value) return "secondary";
@@ -41,14 +38,6 @@ defineExpose({
clear: () => (messages.value = []),
});
-const fetchMore = async () => {
- if (!isLoadingMore.value) {
- loadingMore.value = true;
- await loadOlderLogs();
- loadingMore.value = false;
- }
-};
-
const sizes = computedWithControl(eventSourceURL, () => {
const sizeOptions = [
"w-2/12",
diff --git a/assets/components/LogViewer/LoadMoreLogItem.vue b/assets/components/LogViewer/LoadMoreLogItem.vue
new file mode 100644
index 00000000..a4d4656b
--- /dev/null
+++ b/assets/components/LogViewer/LoadMoreLogItem.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
diff --git a/assets/components/LogViewer/LogList.vue b/assets/components/LogViewer/LogList.vue
index f9e6cd70..d3bc42f1 100644
--- a/assets/components/LogViewer/LogList.vue
+++ b/assets/components/LogViewer/LogList.vue
@@ -16,16 +16,12 @@