mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 11:25:22 +00:00
init pod selectors
This commit is contained in:
parent
5c085133d9
commit
e78b1df999
@ -342,7 +342,12 @@ async function getServices() {
|
|||||||
states.currentService = selectorStore.currentService.value;
|
states.currentService = selectorStore.currentService.value;
|
||||||
const e = dashboardStore.entity.split("Relation")[0];
|
const e = dashboardStore.entity.split("Relation")[0];
|
||||||
if (
|
if (
|
||||||
[EntityType[2].value, EntityType[3].value].includes(dashboardStore.entity)
|
[
|
||||||
|
EntityType[2].value,
|
||||||
|
EntityType[3].value,
|
||||||
|
EntityType[5].value,
|
||||||
|
EntityType[6].value,
|
||||||
|
].includes(dashboardStore.entity)
|
||||||
) {
|
) {
|
||||||
fetchPods(e, selectorStore.currentService.id, true);
|
fetchPods(e, selectorStore.currentService.id, true);
|
||||||
}
|
}
|
||||||
@ -552,11 +557,11 @@ async function fetchPods(
|
|||||||
if (setPod) {
|
if (setPod) {
|
||||||
let p;
|
let p;
|
||||||
if (states.currentDestPod) {
|
if (states.currentDestPod) {
|
||||||
p = selectorStore.pods.find(
|
p = selectorStore.destPods.find(
|
||||||
(d: { label: string }) => d.label === states.currentDestPod
|
(d: { label: string }) => d.label === states.currentDestPod
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
p = selectorStore.pods.find(
|
p = selectorStore.destPods.find(
|
||||||
(d: { label: string }, index: number) => index === 0
|
(d: { label: string }, index: number) => index === 0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user