mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 20:40:12 +08:00
FIX: makes sure we display whisper if we don’t have a post
This commit is contained in:
parent
0ecdf90023
commit
8c89f5704d
@ -98,7 +98,7 @@ export default DropdownSelectBoxComponent.extend({
|
||||
}
|
||||
|
||||
// if answered post is a whisper, we can only answer with a whisper so no need for toggle
|
||||
if (canWhisper && (_postSnapshot && _postSnapshot.post_type !== this.site.post_types.whisper)) {
|
||||
if (canWhisper && (!_postSnapshot || _postSnapshot && _postSnapshot.post_type !== this.site.post_types.whisper)) {
|
||||
items.push({
|
||||
name: I18n.t("composer.composer_actions.toggle_whisper.label"),
|
||||
description: I18n.t("composer.composer_actions.toggle_whisper.desc"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user