diff --git a/src/views/pages/ApplicationBrowser.vue b/src/views/pages/ApplicationBrowser.vue
index 9233a72..3300ef6 100644
--- a/src/views/pages/ApplicationBrowser.vue
+++ b/src/views/pages/ApplicationBrowser.vue
@@ -6,18 +6,31 @@
-
+
File Browser
-
-
-
+
+
+
+
-
-
+
+
@@ -48,6 +61,7 @@ onMounted(() => {
})
function fetchApplicationData() {
+ nodes.value = null;
LoadingStore.another_loading = true;
ApplicationCodeService.getApplication(userPrefStore.getSelApp.internal_name)
.then(response => {
@@ -56,12 +70,11 @@ function fetchApplicationData() {
nodes.value = tmp
expandAll()
LoadingStore.another_loading = false;
-
})
.catch(error => {
console.error("Error fetching application data:", error)
LoadingStore.another_loading = false;
-
+ collapseAll();
})
}
@@ -72,7 +85,7 @@ function reloadPage() {
fetchApplicationData();
}
-watch(() => userPrefStore.getSelApp, reloadPage);
+watch(() => userPrefStore.getSelApp, reloadPage, { immediate: true });
function onNodeSelect(e){
if(e.icon == "pi pi-fw pi-file"){
@@ -82,14 +95,10 @@ function onNodeSelect(e){
}
-
-
-
const expandAll = () => {
for (let node of nodes.value) {
- expandNode(node);
+ expandNode(node, true);
}
-
expandedKeys.value = { ...expandedKeys.value };
};
@@ -97,25 +106,20 @@ const collapseAll = () => {
expandedKeys.value = {};
};
-/*const expandNode = (node) => {
- expandedKeys.value[node.key] = true;
-
+const expandNode = (node, expandAllChildren = false) => {
if (node.children && node.children.length) {
- for (let child of node.children) {
- expandNode(child);
- }
- }
-};*/
-
-const expandNode = (node) => {
- if (node.children && node.children.length) {
- //node.children.forEach(child => {
+ expandedKeys.value[node.key] = true;
+ if (expandAllChildren) {
+ node.children.forEach(child => {
+ expandNode(child, expandAllChildren);
+ });
+ } else {
expandedKeys.value[node.children.key] = true;
- // });
+ }
}
expandedKeys.value = { ...expandedKeys.value };
};
-
+
const collapseNode = (node) => {
if (node.children && node.children.length) {
node.children.forEach(child => {
@@ -125,6 +129,24 @@ const collapseNode = (node) => {
expandedKeys.value = { ...expandedKeys.value };
};
+const skeletonConfigs = [
+ { width: "30%", height: "3rem", inline: true },
+ { width: "95%", height: "3rem" },
+ { width: "50%", height: "1.5rem" },
+ { width: "60%", height: "1.5rem" },
+ { width: "70%", height: "1.5rem" },
+ { width: "80%", height: "1.5rem" },
+ { width: "80%", height: "1.5rem" },
+ { width: "70%", height: "1.5rem" },
+ { width: "80%", height: "1.5rem" },
+ { width: "70%", height: "1.5rem" },
+ { width: "80%", height: "1.5rem" },
+ { width: "80%", height: "1.5rem" },
+ { width: "80%", height: "1.5rem" },
+ { width: "70%", height: "1.5rem" },
+ { width: "80%", height: "1.5rem" }
+];
+
diff --git a/src/views/pages/ScenarioExecList.vue b/src/views/pages/ScenarioExecList.vue
index 389e15a..f439eaa 100644
--- a/src/views/pages/ScenarioExecList.vue
+++ b/src/views/pages/ScenarioExecList.vue
@@ -51,10 +51,19 @@
-
-
+
+
+ {{ moment(slotProps.data.startDate).format('DD-MM-YYYY HH:mm:ss') }}
+
+
+
+
+ {{ moment(slotProps.data.endDate).format('DD-MM-YYYY HH:mm:ss') }}
+
+
+
{{ slotProps.data.scenario.outputType || 'text' }}
@@ -94,7 +103,7 @@ import ProgressSpinner from 'primevue/progressspinner';
import { onMounted, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { ScenarioExecutionStore } from '../../stores/ScenarioExecutionStore.js';
-
+import moment from 'moment';
const first = ref(0);
const router = useRouter();