Skip to content

Commit 49d53a0

Browse files
committed
tag user when create a file
1 parent b69a26a commit 49d53a0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/packages/frontend/project_actions.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,9 +1525,8 @@ export class ProjectActions extends Actions<ProjectStoreState> {
15251525
const computeServerAssociations =
15261526
webapp_client.project_client.computeServers(this.project_id);
15271527
const sidePath = chatFile(path);
1528-
const currentId = await computeServerAssociations.getServerIdForPath(
1529-
sidePath,
1530-
);
1528+
const currentId =
1529+
await computeServerAssociations.getServerIdForPath(sidePath);
15311530
if (currentId != null) {
15321531
// already set
15331532
return;
@@ -2311,8 +2310,8 @@ export class ProjectActions extends Actions<ProjectStoreState> {
23112310
dest_compute_server_id: opts.dest_compute_server_id,
23122311
}
23132312
: opts.src_compute_server_id
2314-
? { compute_server_id: opts.src_compute_server_id }
2315-
: undefined),
2313+
? { compute_server_id: opts.src_compute_server_id }
2314+
: undefined),
23162315
});
23172316

23182317
if (opts.only_contents) {
@@ -2837,6 +2836,9 @@ export class ProjectActions extends Actions<ProjectStoreState> {
28372836
return;
28382837
}
28392838
this.log({ event: "file_action", action: "created", files: [p] });
2839+
if (ext) {
2840+
redux.getActions("account")?.addTag(`create-${ext}`);
2841+
}
28402842
if (opts.switch_over) {
28412843
this.open_file({
28422844
path: p,

0 commit comments

Comments
 (0)