-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
un-i18n Modal Analytics #4688
un-i18n Modal Analytics #4688
Conversation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
|
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've missed a few errors being tracked
title: _t('Room not found'), | ||
description: _t('Couldn\'t find a matching Matrix room'), | ||
}); | ||
} | ||
}, (e) => { | ||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); | ||
Modal.createDialog(ErrorDialog, { | ||
Modal.createTrackedDialog('Fetching third party location failed', e.toString(), ErrorDialog, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.toString()
@@ -99,7 +99,7 @@ module.exports = React.createClass({ | |||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); | |||
// display error message stating you couldn't delete this. | |||
const code = e.errcode || e.statusCode; | |||
Modal.createDialog(ErrorDialog, { | |||
Modal.createTrackedDialog('You cannot delete this message', e.toString(), ErrorDialog, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.toString()
@@ -76,7 +76,7 @@ module.exports = React.createClass({ | |||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); | |||
// display error message stating you couldn't delete this. | |||
var code = e.errcode || e.statusCode; | |||
Modal.createDialog(ErrorDialog, { | |||
Modal.createTrackedDialog('You cannot delete this image.', e.toString(), ErrorDialog, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.toString()
@@ -131,7 +131,7 @@ module.exports = React.createClass({ | |||
this._refreshFromServer(); | |||
}, (error) => { | |||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); | |||
Modal.createDialog(ErrorDialog, { | |||
Modal.createTrackedDialog('Error saving email notification preferences', error.toString(), ErrorDialog, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.toString()
@@ -241,7 +241,7 @@ module.exports = React.createClass({ | |||
}, function(error) { | |||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); | |||
console.error("Failed to change settings: " + error); | |||
Modal.createDialog(ErrorDialog, { | |||
Modal.createTrackedDialog('Failed to change settings', error.toString(), ErrorDialog, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.toString()
@@ -311,7 +311,7 @@ module.exports = React.createClass({ | |||
}, function(error) { | |||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); | |||
console.error("Can't update user notification settings: " + error); | |||
Modal.createDialog(ErrorDialog, { | |||
Modal.createTrackedDialog('Can\'t update user notifcation settings', error.toString(), ErrorDialog, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.toString()
@@ -353,7 +353,7 @@ module.exports = React.createClass({ | |||
var onError = function(error) { | |||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); | |||
console.error("Failed to update keywords: " + error); | |||
Modal.createDialog(ErrorDialog, { | |||
Modal.createTrackedDialog('Failed to update keywords', error.toString(), ErrorDialog, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.toString()
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski 7t3chguy@gmail.com
paired with matrix-org/matrix-react-sdk#1255