Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/components/PodBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,12 @@ export default {
},
},
mounted() {
if (this.selectedPodUrl) {
this.displayPath = this.selectedPodUrl; // Assign podUrl to displayPath
this.getItems(this.displayPath); // Fetch items for the initial path
}
setTimeout(() => {
if (this.selectedPodUrl) {
this.displayPath = this.selectedPodUrl; // Assign podUrl to displayPath
this.getItems(this.displayPath); // Fetch items for the initial path
}
}, 200);
// Delays the execution of these functions on page reload (to avoid async-related errors)
},
watch: {
Expand All @@ -414,6 +416,11 @@ export default {
this.getItems(this.selectedPodUrl); // Fetch items for the initial path
}
},
dirContents(newValue) {
if (newValue) {
this.getItems(this.displayPath);
}
},
},
};
</script>
Expand Down
Loading