Skip to content
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

[server-1397] feedback widget system logs wordings changed. #880

Merged
merged 5 commits into from
Apr 30, 2019
Merged

[server-1397] feedback widget system logs wordings changed. #880

merged 5 commits into from
Apr 30, 2019

Conversation

frknbasaran
Copy link
Member

No description provided.

@@ -66,7 +66,7 @@ var exported = {},
common.db.collection(collectionName).insert(widget, function(err) {
if (!err) {
common.returnMessage(ob.params, 201, "Success");
plugins.dispatch("/systemlogs", {params: params, action: "Widget added", data: widget});
plugins.dispatch("/systemlogs", {params: params, action: "Feedback widget added", data: widget});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we better have them as localized strings, so the code here would not actually change in future, but rather only localized string changes here:
https://github.com/Countly/countly-server/blob/master/plugins/systemlogs/frontend/public/localization/systemlogs.properties#L58

@Countly Countly deleted a comment Apr 15, 2019
@Countly Countly deleted a comment Apr 16, 2019
@@ -2,7 +2,8 @@ var exported = {},
common = require('../../../api/utils/common.js'),
crypto = require('crypto'),
countlyCommon = require('../../../api/lib/countly.common.js'),
plugins = require('../../pluginManager.js');
plugins = require('../../pluginManager.js'),
localize = require('../../../api/utils/localization.js');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now you don't need the localization module here then :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep I removed that dependencies on my last commit.
5bf4d7b

@Countly Countly deleted a comment Apr 29, 2019
@Countly Countly deleted a comment Apr 29, 2019
@Countly Countly deleted a comment Apr 29, 2019
@Countly Countly deleted a comment Apr 29, 2019
@Countly Countly deleted a comment Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants