mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
Change timestamp only for admin.
This commit is contained in:
@ -137,10 +137,13 @@ export default createWidget('topic-admin-menu', {
|
|||||||
icon: 'thumb-tack',
|
icon: 'thumb-tack',
|
||||||
label: featured ? 'actions.unpin' : 'actions.pin' });
|
label: featured ? 'actions.unpin' : 'actions.pin' });
|
||||||
}
|
}
|
||||||
buttons.push({ className: 'topic-admin-change-timestamp',
|
|
||||||
action: 'showChangeTimestamp',
|
if (this.currentUser.admin) {
|
||||||
icon: 'calendar',
|
buttons.push({ className: 'topic-admin-change-timestamp',
|
||||||
label: 'change_timestamp.title' });
|
action: 'showChangeTimestamp',
|
||||||
|
icon: 'calendar',
|
||||||
|
label: 'change_timestamp.title' });
|
||||||
|
}
|
||||||
|
|
||||||
if (!isPrivateMessage) {
|
if (!isPrivateMessage) {
|
||||||
buttons.push({ className: 'topic-admin-archive',
|
buttons.push({ className: 'topic-admin-archive',
|
||||||
|
Reference in New Issue
Block a user