Skip to content

Commit 05cbf4b

Browse files
author
Ives van Hoorne
committed
Rename dashboard action for recovering a sandbox
1 parent 2eb07d7 commit 05cbf4b

File tree

2 files changed

+5
-2
lines changed
  • packages/app/src/app

2 files changed

+5
-2
lines changed

packages/app/src/app/pages/Dashboard/Content/SandboxCard/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ class SandboxItem extends React.PureComponent<Props> {
136136
{
137137
title:
138138
selectedCount > 1
139-
? `Move ${selectedCount} Sandboxes To 'My Sandboxes'`
140-
: "Move Sandbox To 'My Sandboxes'",
139+
? `Recover ${selectedCount} Sandboxes`
140+
: 'Recover Sandbox',
141141
action: () => {
142142
this.props.undeleteSandboxes();
143143
return true;

packages/app/src/app/store/modules/editor/utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import track from 'common/utils/analytics';
2+
13
export function saveAllModules(store, signals) {
24
const sandbox = store.editor.currentSandbox;
35

46
// In case you don't own the sandbox we cannot do >1 calls for saving module as you would then
57
// also fork >1 times. The reason that we want to save seperately is because we want to have
68
// fine-grained control of which saves succeed and which saves fail
79
if (sandbox.owned) {
10+
track('Save All Modified Modules');
811
sandbox.modules
912
.filter(m => !store.editor.isModuleSynced(m.shortid))
1013
.forEach(module => {

0 commit comments

Comments
 (0)