mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Recompile JS
This commit is contained in:
parent
7fa9831dd2
commit
2e1bc6eece
10
extensions/lock/js/forum/dist/extension.js
vendored
10
extensions/lock/js/forum/dist/extension.js
vendored
|
@ -10,7 +10,7 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
||||||
if (this.isLocked()) {
|
if (this.isLocked()) {
|
||||||
badges.add('locked', Badge.component({
|
badges.add('locked', Badge.component({
|
||||||
type: 'locked',
|
type: 'locked',
|
||||||
label: app.trans('flarum-lock.forum.locked'),
|
label: app.translator.trans('flarum-lock.forum.badge.locked_tooltip'),
|
||||||
icon: 'lock'
|
icon: 'lock'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
||||||
extend(DiscussionControls, 'moderationControls', function (items, discussion) {
|
extend(DiscussionControls, 'moderationControls', function (items, discussion) {
|
||||||
if (discussion.canLock()) {
|
if (discussion.canLock()) {
|
||||||
items.add('lock', Button.component({
|
items.add('lock', Button.component({
|
||||||
children: app.trans(discussion.isLocked() ? 'flarum-lock.forum.unlock' : 'flarum-lock.forum.lock'),
|
children: app.translator.trans(discussion.isLocked() ? 'flarum-lock.forum.discussion_controls.unlock_button' : 'flarum-lock.forum.discussion_controls.lock_button'),
|
||||||
icon: 'lock',
|
icon: 'lock',
|
||||||
onclick: this.lockAction.bind(discussion)
|
onclick: this.lockAction.bind(discussion)
|
||||||
}));
|
}));
|
||||||
|
@ -108,7 +108,7 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
||||||
items.add('discussionLocked', {
|
items.add('discussionLocked', {
|
||||||
name: 'discussionLocked',
|
name: 'discussionLocked',
|
||||||
icon: 'lock',
|
icon: 'lock',
|
||||||
label: app.trans('flarum-lock.forum.notify_discussion_locked')
|
label: app.translator.trans('flarum-lock.forum.settings.notify_discussion_locked_label')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -146,7 +146,7 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
||||||
}, {
|
}, {
|
||||||
key: 'content',
|
key: 'content',
|
||||||
value: function content() {
|
value: function content() {
|
||||||
return app.trans('flarum-lock.forum.discussion_locked_notification', { user: this.props.notification.sender() });
|
return app.translator.trans('flarum-lock.forum.notifications.discussion_locked_text', { user: this.props.notification.sender() });
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
return DiscussionLockedNotification;
|
return DiscussionLockedNotification;
|
||||||
|
@ -180,7 +180,7 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
||||||
}, {
|
}, {
|
||||||
key: 'descriptionKey',
|
key: 'descriptionKey',
|
||||||
value: function descriptionKey() {
|
value: function descriptionKey() {
|
||||||
return this.props.post.content().locked ? 'flarum-lock.forum.discussion_locked_post' : 'flarum-lock.forum.discussion_unlocked_post';
|
return this.props.post.content().locked ? 'flarum-lock.forum.post_stream.discussion_locked_text' : 'flarum-lock.forum.post_stream.discussion_unlocked_text';
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
return DiscussionLockedPost;
|
return DiscussionLockedPost;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user