Fix commas in new DiscussionRenamedPost tooltip. ref #428

This commit is contained in:
Toby Zerner 2016-04-01 12:02:51 +10:30
parent b74ca9979f
commit b799039c29
2 changed files with 7 additions and 4 deletions

View File

@ -21253,11 +21253,13 @@ System.register('flarum/components/DiscussionRenamedNotification', ['flarum/comp
});;
'use strict';
System.register('flarum/components/DiscussionRenamedPost', ['flarum/components/EventPost'], function (_export, _context) {
var EventPost, DiscussionRenamedPost;
System.register('flarum/components/DiscussionRenamedPost', ['flarum/components/EventPost', 'flarum/utils/extractText'], function (_export, _context) {
var EventPost, extractText, DiscussionRenamedPost;
return {
setters: [function (_flarumComponentsEventPost) {
EventPost = _flarumComponentsEventPost.default;
}, function (_flarumUtilsExtractText) {
extractText = _flarumUtilsExtractText.default;
}],
execute: function () {
DiscussionRenamedPost = function (_EventPost) {
@ -21281,7 +21283,7 @@ System.register('flarum/components/DiscussionRenamedPost', ['flarum/components/E
return m(
'span',
{ title: oldName },
{ title: extractText(oldName) },
renamed
);
}

View File

@ -1,4 +1,5 @@
import EventPost from 'flarum/components/EventPost';
import extractText from 'flarum/utils/extractText';
/**
* The `DiscussionRenamedPost` component displays a discussion event post
@ -17,7 +18,7 @@ export default class DiscussionRenamedPost extends EventPost {
const renamed = app.translator.trans('core.forum.post_stream.discussion_renamed_text', data);
const oldName = app.translator.trans('core.forum.post_stream.discussion_renamed_old_text', data);
return <span title={oldName}>{renamed}</span>;
return <span title={extractText(oldName)}>{renamed}</span>;
}
descriptionData() {