Skip to content

Commit b0b21a6

Browse files
committed
Merge remote-tracking branch 'origin/master' into delete-project-data
2 parents 5d7c4aa + 360d97c commit b0b21a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/packages/frontend/project/trial-banner.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Alert, Modal, Space, Tag, Tooltip } from "antd";
77
import humanizeList from "humanize-list";
88
import { join } from "path";
99
import { useInterval } from "react-interval-hook";
10+
1011
import {
1112
CSS,
1213
React,
@@ -41,6 +42,8 @@ import { applyLicense } from "./settings/site-license";
4142

4243
export const DOC_TRIAL = "https://doc.cocalc.com/trial.html";
4344

45+
const TRACK_KEY = "trial_banner";
46+
4447
// explains implications for having no internet and/or no member hosting
4548
export const A_STYLE: CSS = {
4649
cursor: "pointer",
@@ -413,6 +416,7 @@ function CountdownProject({ fontSize }: CountdownProjectProps) {
413416
// This closes all tabs and then stops the project.
414417
openFiles.map((path) => actions?.close_tab(path));
415418
redux.getActions("projects").stop_project(project_id);
419+
track(TRACK_KEY, { what: "shutdown", project_id });
416420
}
417421

418422
function renderInfo() {
@@ -492,7 +496,7 @@ function CountdownProject({ fontSize }: CountdownProjectProps) {
492496
color={"red"}
493497
onClick={() => {
494498
setShowInfo(true);
495-
track("trial-banner", { what: "countdown", project_id });
499+
track(TRACK_KEY, { what: "countdown-click", project_id });
496500
}}
497501
>
498502
<TimeAmount

0 commit comments

Comments
 (0)