Skip to content
Snippets Groups Projects
Commit 4a3c08da authored by Simon Belak's avatar Simon Belak
Browse files

Merge branch 'fingerprints-poc' of github.com:metabase/metabase into fingerprints-poc

parents 620e431c 7ac30dcb
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,6 @@ import XRaySegment from "./XRaySegment";
export const DEFAULT_ACTIONS = [
UnderlyingDataAction,
UnderlyingRecordsAction,
XRaySegment
UnderlyingRecordsAction
// XRaySegment
];
......@@ -19,7 +19,7 @@ const SegmentMode: QueryMode = {
name: "segment",
actions: [
...DEFAULT_ACTIONS,
XRaySegment,
// XRaySegment,
CommonMetricsAction,
CountByTimeAction,
SummarizeBySegmentMetricAction
......
......@@ -90,7 +90,10 @@ export default class ActionsWidget extends Component {
this.setState({ selectedActionIndex: index });
} else if (action && action.url) {
const nextUrl = action.url();
this.props.onChangeLocation(nextUrl);
if(nextUrl){
MetabaseAnalytics.trackEvent("Actions", "Executed Action", `${action.section||""}:${action.name||""}`);
this.props.onChangeLocation(nextUrl);
}
}
else if (action && action.card) {
const nextCard = action.card();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment