File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
apps/src/code-studio/components Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,16 @@ export default class AssetManager extends React.Component {
143
143
if ( this . props . assetsChanged ) {
144
144
this . props . assetsChanged ( ) ;
145
145
}
146
+ firehoseClient . putRecord (
147
+ {
148
+ study : 'delete-asset' ,
149
+ study_group : this . props . assetChosen && typeof this . props . assetChosen === 'function' ? 'choose-assets' : 'manage-assets' ,
150
+ event : 'confirm' ,
151
+ project_id : this . props . projectId ,
152
+ data_string : name
153
+ }
154
+ ) ;
155
+
146
156
this . setState ( {
147
157
assets : assetListStore . list ( this . props . allowedExtensions ) ,
148
158
statusMessage : 'File "' + name + '" successfully deleted!'
@@ -223,6 +233,7 @@ export default class AssetManager extends React.Component {
223
233
onDelete = { this . deleteAssetRow . bind ( this , asset . filename ) }
224
234
soundPlayer = { this . props . soundPlayer }
225
235
imagePicker = { this . props . imagePicker }
236
+ projectId = { this . props . projectId }
226
237
/>
227
238
) ;
228
239
} . bind ( this ) ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export default class AssetRow extends React.Component {
17
17
onChoose : PropTypes . func ,
18
18
onDelete : PropTypes . func . isRequired ,
19
19
soundPlayer : PropTypes . object ,
20
+ projectId : PropTypes . string ,
20
21
21
22
//temporary prop to differentiate choosing images and sounds
22
23
imagePicker : PropTypes . bool
@@ -32,6 +33,15 @@ export default class AssetRow extends React.Component {
32
33
*/
33
34
confirmDelete = ( ) => {
34
35
this . setState ( { action : 'confirming delete' , actionText : '' } ) ;
36
+ firehoseClient . putRecord (
37
+ {
38
+ study : 'delete-asset' ,
39
+ study_group : this . props . onChoose && typeof this . props . onChoose === 'function' ? 'choose-assets' : 'manage-assets' ,
40
+ event : 'initiate' ,
41
+ project_id : this . props . projectId ,
42
+ data_string : this . props . name
43
+ }
44
+ ) ;
35
45
} ;
36
46
37
47
/**
You can’t perform that action at this time.
0 commit comments