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

GCW-3508-Default message UI #493

Merged
merged 12 commits into from
Mar 1, 2021
Merged

Conversation

abulsayyad123
Copy link
Contributor

Ticket Link:

https://jira.crossroads.org.hk/browse/GCW-3508

What does this PR do?

This PR adds UI for adding default message.

{{/if}}
<div class="row edit-message">
<span clas="small-3 columns" style="flex: 1;text-align: center;">
Label*
Copy link
Contributor

@shreyas098 shreyas098 Feb 26, 2021

Choose a reason for hiding this comment

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

translations

Comment on lines 12 to 18
let message;
if (editMessage.messageId) {
message = store.peekRecord("canned_response", editMessage.messageId);
} else {
message = store.createRecord("canned-response");
}
this.set("message", message);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let message;
if (editMessage.messageId) {
message = store.peekRecord("canned_response", editMessage.messageId);
} else {
message = store.createRecord("canned-response");
}
this.set("message", message);
const message = store.peekRecord("canned_response", editMessage.messageId) || store.createRecord("canned-response");
this.set("message", message);

positionalParams: ["value"]
});

export default AliasComponent;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻

@abulsayyad123 abulsayyad123 merged commit 977a048 into master Mar 1, 2021
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.

3 participants