Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browser/finder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class FinderMain extends React.Component {

if (e.keyCode === 13) {
this.refs.detail.saveToClipboard()
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('COPY_FINDER')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('COPY_FINDER')
hideFinder()
e.preventDefault()
}
Expand Down
4 changes: 2 additions & 2 deletions browser/main/Detail/MarkdownNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class MarkdownNoteDetail extends React.Component {
type: 'UPDATE_NOTE',
note: note
})
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('EDIT_NOTE')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('EDIT_NOTE')
})
}

Expand Down Expand Up @@ -160,7 +160,7 @@ class MarkdownNoteDetail extends React.Component {

handleStarButtonClick (e) {
let { note } = this.state
if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_STAR')
if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_STAR')

note.isStarred = !note.isStarred

Expand Down
4 changes: 2 additions & 2 deletions browser/main/Detail/SnippetNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SnippetNoteDetail extends React.Component {
type: 'UPDATE_NOTE',
note: note
})
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('EDIT_NOTE')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('EDIT_NOTE')
})
}

Expand Down Expand Up @@ -154,7 +154,7 @@ class SnippetNoteDetail extends React.Component {

handleStarButtonClick (e) {
let { note } = this.state
if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_STAR')
if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_STAR')

note.isStarred = !note.isStarred

Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/TagSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class TagSelect extends React.Component {
}

submitTag () {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_TAG')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_TAG')
let { value } = this.props
let newTag = this.refs.newTag.value.trim().replace(/ +/g, '_')

Expand Down
4 changes: 2 additions & 2 deletions browser/main/lib/AwsMobileAnalyticsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function initAwsMobileAnalytics () {
recordStaticCustomEvent()
}

function recordDynamitCustomEvent (type) {
function recordDynamicCustomEvent (type) {
if (process.env.NODE_ENV !== 'production' || !ConfigManager.default.get().amaEnabled) return
mobileAnalyticsClient.recordEvent(type)
}
Expand All @@ -37,5 +37,5 @@ function recordStaticCustomEvent () {

module.exports = {
initAwsMobileAnalytics,
recordDynamitCustomEvent
recordDynamicCustomEvent
}
2 changes: 1 addition & 1 deletion browser/main/modals/CreateFolderModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CreateFolderModal extends React.Component {
}

confirm () {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_FOLDER')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_FOLDER')
if (this.state.name.trim().length > 0) {
let { storage } = this.props
let input = {
Expand Down
8 changes: 4 additions & 4 deletions browser/main/modals/NewNoteModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class NewNoteModal extends React.Component {
}

handleMarkdownNoteButtonClick (e) {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_MARKDOWN')
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_ALLNOTE')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_MARKDOWN')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE')
let { storage, folder, dispatch, location } = this.props
dataApi
.createNote(storage, {
Expand Down Expand Up @@ -56,8 +56,8 @@ class NewNoteModal extends React.Component {
}

handleSnippetNoteButtonClick (e) {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_SNIPPET')
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_ALLNOTE')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_SNIPPET')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE')
let { storage, folder, dispatch, location } = this.props

dataApi
Expand Down
2 changes: 1 addition & 1 deletion browser/main/modals/PreferencesModal/InfoTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class InfoTab extends React.Component {
config: newConfig
})
if (!newConfig.amaEnabled) {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('DISABLE_AMA')
AwsMobileAnalyticsConfig.recordDynamicCustomEvent('DISABLE_AMA')
}
}

Expand Down