Skip to content

Commit

Permalink
Changes source of text for announcement modal content (#10733)
Browse files Browse the repository at this point in the history
[FIX] Regression: Empty content on announcement modal
  • Loading branch information
gdelavald authored and rodrigok committed May 11, 2018
1 parent 4e9f025 commit 69add44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-ui/client/views/app/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,15 +714,15 @@ Template.room.events({
addClass.forEach(message => $(`.messages-box #${ message }`).addClass('selected'));
}
},
'click .announcement'(e) {
'click .announcement'() {
const roomData = Session.get(`roomData${ this._id }`);
if (!roomData) { return false; }
if (roomData.announcementDetails != null && roomData.announcementDetails.callback != null) {
return RocketChat.callbacks.run(roomData.announcementDetails.callback, this._id);
} else {
modal.open({
title: t('Announcement'),
text: $(e.target).attr('aria-label'),
text: roomData.announcement,
showConfirmButton: false,
showCancelButton: true,
cancelButtonText: t('Close')
Expand Down

0 comments on commit 69add44

Please sign in to comment.