Add snippet name to snippet list

pull/9184/head
Karl Prieb 8 years ago
parent 18779d98e3
commit c80c12f4b1
  1. 3
      packages/rocketchat-i18n/i18n/en.i18n.json
  2. 3
      packages/rocketchat-ui-message/client/message.html
  3. 3
      packages/rocketchat-ui-message/client/message.js

@ -1706,6 +1706,7 @@
"SMTP_Username": "SMTP Username",
"snippet-message": "Snippet Message",
"snippet-message_description": "Permission to create snippet message",
"Snippet_name": "Snippet name",
"Snippet_Added": "Created on %s",
"Snippet_Messages": "Snippet Messages",
"Snippeted_a_message": "Created a snippet __snippetLink__",
@ -2122,4 +2123,4 @@
"your_message_optional": "your message (optional)",
"Your_password_is_wrong": "Your password is wrong!",
"Your_push_was_sent_to_s_devices": "Your push was sent to %s devices"
}
}

@ -51,6 +51,9 @@
{{/if}}
</span>
<div class="body color-primary-font-color {{system true}}" dir="auto" data-unread-text="{{_ "Unread_Messages"}}">
{{#if isSnippet}}
<div class="snippet-name">{{_ "Snippet_name"}}: {{snippetName}}</div>
{{/if}}
{{{body}}}
{{#if hasOembed}}
{{#each urls}}

@ -281,6 +281,9 @@ Template.message.helpers({
}
return RocketChat.MessageAction.getButtons(Template.currentData(), context, messageGroup);
},
isSnippet() {
return this.actionContext === 'snippeted';
}
});

Loading…
Cancel
Save