+
@@ -28,7 +39,13 @@ import ControlService from "@/store/ControlService";
import LeaderLine from "leader-line-new";
import { useSetups } from "@/store/setups";
-const emit = defineEmits(["openExpert", "openLog", "setupState", "exportSetup"]);
+const emit = defineEmits([
+ "openExpert",
+ "openLog",
+ "setupState",
+ "exportSetup",
+ "externalModify",
+]);
// Refs
const isPluginLogPageActive = ref(false);
@@ -61,7 +78,12 @@ watchEffect(() => {
const oneWayConnection = (start, end, startSocket, endSocket) => {
if (start && end) {
- let newLine = new LeaderLine(start, end, { dash: { animation: true } }, { hide: true });
+ let newLine = new LeaderLine(
+ start,
+ end,
+ { dash: { animation: true } },
+ { hide: true }
+ );
newLine.position();
newLine.setOptions({
size: 2,
@@ -83,7 +105,9 @@ const lineDrawHandler = (item) => {
const dependencies = serviceStore.installedServices.filter(
(s) =>
s.config?.dependencies?.executionClients?.length > 0 &&
- s.config?.dependencies?.executionClients.some((d) => d.id === item.config?.serviceID)
+ s.config?.dependencies?.executionClients.some(
+ (d) => d.id === item.config?.serviceID
+ )
);
dependencies.forEach((d) => {
if (d.category === "consensus") {
@@ -100,8 +124,12 @@ const lineDrawHandler = (item) => {
const dependencies = serviceStore.installedServices.filter(
(s) =>
(s.config?.dependencies?.consensusClients?.length > 0 &&
- s.config?.dependencies?.consensusClients.some((d) => d.id === item.config?.serviceID)) ||
- item.config?.dependencies?.executionClients.some((d) => d.id === s.config?.serviceID)
+ s.config?.dependencies?.consensusClients.some(
+ (d) => d.id === item.config?.serviceID
+ )) ||
+ item.config?.dependencies?.executionClients.some(
+ (d) => d.id === s.config?.serviceID
+ )
);
dependencies.forEach((d) => {
if (d.category === "validator") {
@@ -124,9 +152,15 @@ const lineDrawHandler = (item) => {
case "validator": {
const dependencies = serviceStore.installedServices.filter(
(s) =>
- item.config?.dependencies?.executionClients.some((d) => d.id === s.config?.serviceID) ||
- item.config?.dependencies?.consensusClients.some((d) => d.id === s.config?.serviceID) ||
- s.config?.dependencies?.consensusClients.some((d) => d.id === item.config?.serviceID)
+ item.config?.dependencies?.executionClients.some(
+ (d) => d.id === s.config?.serviceID
+ ) ||
+ item.config?.dependencies?.consensusClients.some(
+ (d) => d.id === s.config?.serviceID
+ ) ||
+ s.config?.dependencies?.consensusClients.some(
+ (d) => d.id === item.config?.serviceID
+ )
);
dependencies.forEach((d) => {
if (d.category === "validator") {
@@ -205,6 +239,10 @@ const exportSetup = (setup) => {
emit("exportSetup", setup);
};
+const externalModify = (item) => {
+ emit("externalModify", item);
+};
+
const copyJwt = async (item) => {
let volume = "";
item.config?.volumes.forEach((vol) => {
diff --git a/launcher/src/components/UI/node-page/components/node/clients/ClientButtons.vue b/launcher/src/components/UI/node-page/components/node/clients/ClientButtons.vue
index fa6baef13..132caff2b 100755
--- a/launcher/src/components/UI/node-page/components/node/clients/ClientButtons.vue
+++ b/launcher/src/components/UI/node-page/components/node/clients/ClientButtons.vue
@@ -1,12 +1,26 @@
import { useNodeStore } from '@/store/theNode';
-
+
@@ -138,7 +225,17 @@ const props = defineProps({
client: Object,
});
-const emit = defineEmits(["openExpert", "openLog", "openDoc", "stateHandler", "restartHandler", "openResync", "openPruning", "copyJwt"]);
+const emit = defineEmits([
+ "openExpert",
+ "openLog",
+ "openDoc",
+ "stateHandler",
+ "restartHandler",
+ "openResync",
+ "openPruning",
+ "copyJwt",
+ "externalModify",
+]);
const nodeStore = useNodeStore();
@@ -192,4 +289,10 @@ const copyJwt = () => {
emit("copyJwt", props.client);
footerStore.cursorLocation = "";
};
+
+const externalModify = () => {
+ nodeStore.isLineHidden = true;
+ emit("externalModify", props.client);
+ footerStore.cursorLocation = "";
+};
diff --git a/launcher/src/components/UI/node-page/components/node/clients/ConsensusClients.vue b/launcher/src/components/UI/node-page/components/node/clients/ConsensusClients.vue
index 73ed42ffd..e8653803c 100755
--- a/launcher/src/components/UI/node-page/components/node/clients/ConsensusClients.vue
+++ b/launcher/src/components/UI/node-page/components/node/clients/ConsensusClients.vue
@@ -21,9 +21,15 @@
@restart-handler="restartHandler"
@open-doc="openDoc"
@open-resync="openResync(item)"
+ @external-modify="externalModify"
/>
-
+
@@ -38,7 +44,16 @@ import ClientLayout from "./ClientLayout.vue";
import ClientButtons from "./ClientButtons.vue";
import { useSetups } from "../../../../../../store/setups";
-const emit = defineEmits(["openExpert", "openLog", "openDoc", "stateHandler", "restartHandler", "mouseOver", "mouseLeave"]);
+const emit = defineEmits([
+ "openExpert",
+ "openLog",
+ "openDoc",
+ "stateHandler",
+ "restartHandler",
+ "mouseOver",
+ "mouseLeave",
+ "externalModify",
+]);
//Refs
const nodeStore = useNodeStore();
@@ -51,7 +66,9 @@ const getConsensusServices = computed(() => {
}
const services = serviceStore.installedServices
- .filter((s) => s.category === "consensus" && s.setupId === setupStore.selectedSetup?.setupId)
+ .filter(
+ (s) => s.category === "consensus" && s.setupId === setupStore.selectedSetup?.setupId
+ )
.sort((a, b) => {
const fa = a.name.toLowerCase();
const fb = b.name.toLowerCase();
@@ -97,6 +114,10 @@ const stateHandler = (item) => {
const restartHandler = (item) => {
emit("restartHandler", item);
};
+
+const externalModify = (item) => {
+ emit("externalModify", item);
+};