1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 22:20:21 +02:00

Rename JS sub-components so that descriptors are before the noun, not after

This commit is contained in:
Toby Zerner
2015-05-18 18:50:54 +09:30
parent 0b95fc7f81
commit 6bfecec9f2
7 changed files with 14 additions and 14 deletions

View File

@@ -4,8 +4,8 @@ import postMentionPreviews from 'mentions/post-mention-previews';
import mentionedByList from 'mentions/mentioned-by-list';
import postReplyAction from 'mentions/post-reply-action';
import composerAutocomplete from 'mentions/composer-autocomplete';
import NotificationPostMentioned from 'mentions/components/notification-post-mentioned';
import NotificationUserMentioned from 'mentions/components/notification-user-mentioned';
import PostMentionedNotification from 'mentions/components/post-mentioned-notification';
import UserMentionedNotification from 'mentions/components/user-mentioned-notification';
app.initializers.add('mentions', function() {
// For every mention of a post inside a post's content, set up a hover handler
@@ -24,6 +24,6 @@ app.initializers.add('mentions', function() {
// posts or users that the user could mention.
composerAutocomplete();
app.notificationComponentRegistry['postMentioned'] = NotificationPostMentioned;
app.notificationComponentRegistry['userMentioned'] = NotificationUserMentioned;
app.notificationComponentRegistry['postMentioned'] = PostMentionedNotification;
app.notificationComponentRegistry['userMentioned'] = UserMentionedNotification;
});