mirror of
https://github.com/discourse/discourse.git
synced 2025-02-15 19:32:44 +08:00
15 lines
368 B
JavaScript
15 lines
368 B
JavaScript
import ButtonView from 'discourse/views/button';
|
|
|
|
export default ButtonView.extend({
|
|
classNames: ['share'],
|
|
textKey: 'topic.share.title',
|
|
helpKey: 'topic.share.help',
|
|
'data-share-url': Em.computed.alias('topic.shareUrl'),
|
|
topic: Em.computed.alias('controller.model'),
|
|
|
|
renderIcon: function(buffer) {
|
|
buffer.push("<i class='fa fa-link'></i>");
|
|
}
|
|
});
|
|
|