feat(components): introduce dynamic logo paths for NetworkVisualiser and ToolsPage components

This commit is contained in:
2026-01-01 16:58:49 -06:00
parent 2abc5e7ad7
commit 0c22610961
2 changed files with 8 additions and 2 deletions

View File

@@ -265,6 +265,7 @@ export default {
},
data() {
return {
reticulumLogoPath: "/assets/images/reticulum_logo_512.png",
config: null,
autoReload: false,
reloadInterval: null,
@@ -598,7 +599,7 @@ export default {
group: "me",
size: 50,
shape: "circularImage",
image: "/assets/images/reticulum_logo_512.png",
image: this.reticulumLogoPath,
label: meLabel,
title: `Local Node: ${meLabel}\nIdentity: ${this.config?.identity_hash ?? "Unknown"}`,
color: { border: "#3b82f6", background: isDarkMode ? "#1e3a8a" : "#dbeafe" },

View File

@@ -102,7 +102,7 @@
<div
class="tool-card__icon bg-purple-50 text-purple-500 dark:bg-purple-900/30 dark:text-purple-200"
>
<img src="/rnode-flasher/reticulum_logo_512.png" class="w-8 h-8 rounded-full" alt="RNode" />
<img :src="rnodeLogoPath" class="w-8 h-8 rounded-full" alt="RNode" />
</div>
<div class="flex-1">
<div class="tool-card__title">{{ $t("tools.rnode_flasher.title") }}</div>
@@ -124,6 +124,11 @@ export default {
components: {
MaterialDesignIcon,
},
data() {
return {
rnodeLogoPath: "/rnode-flasher/reticulum_logo_512.png",
};
},
};
</script>