-
Notifications
You must be signed in to change notification settings - Fork 972
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
Conversation
plugins/star-rating/api/api.js
Outdated
@@ -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}); |
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.
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
plugins/star-rating/api/api.js
Outdated
@@ -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'); |
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.
Now you don't need the localization module here then :)
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.
yep I removed that dependencies on my last commit.
5bf4d7b
No description provided.