mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Fix commas in new DiscussionRenamedPost tooltip. ref #428
This commit is contained in:
parent
b74ca9979f
commit
b799039c29
8
js/forum/dist/app.js
vendored
8
js/forum/dist/app.js
vendored
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user