+
{{ t("view") }}
-
+
{{ data.attachedEvents && data.attachedEvents.length }}
@@ -150,6 +150,7 @@ limitations under the License. -->
import { useAppStoreWithOut } from "@/store/modules/app";
import { Themes } from "@/constants/data";
import { TraceGraphType } from "../constant";
+ import { WidgetType } from "@/views/dashboard/data";
/*global Recordable*/
const props = {
@@ -215,7 +216,7 @@ limitations under the License. -->
function selectSpan(event: Recordable) {
const dom = event.composedPath().find((d: Recordable) => d.className.includes("trace-item"));
selectedItem(props.data);
- if (props.headerType === "profile") {
+ if (props.headerType === WidgetType.Profile) {
showSelectSpan(dom);
return;
}
@@ -264,6 +265,7 @@ limitations under the License. -->
t,
appStore,
TraceGraphType,
+ WidgetType,
};
},
});