FIX: Ensure topic steam is loaded before rendering the map (#28031)
This commit is contained in:
parent
e020888b0a
commit
a4692609e4
|
@ -12,26 +12,26 @@ const TopicMap = <template>
|
|||
@postStream={{@postStream}}
|
||||
/>
|
||||
</section>
|
||||
{{/unless}}
|
||||
|
||||
<section class="topic-map__additional-contents toggle-summary">
|
||||
<PluginOutlet
|
||||
@name="topic-map-expanded-after"
|
||||
@defaultGlimmer={{true}}
|
||||
@outletArgs={{hash topic=@model postStream=@postStream}}
|
||||
/>
|
||||
</section>
|
||||
|
||||
{{#if @showPMMap}}
|
||||
<section class="topic-map__private-message-map">
|
||||
<PrivateMessageMap
|
||||
@topicDetails={{@topicDetails}}
|
||||
@showInvite={{@showInvite}}
|
||||
@removeAllowedGroup={{@removeAllowedGroup}}
|
||||
@removeAllowedUser={{@removeAllowedUser}}
|
||||
<section class="topic-map__additional-contents toggle-summary">
|
||||
<PluginOutlet
|
||||
@name="topic-map-expanded-after"
|
||||
@defaultGlimmer={{true}}
|
||||
@outletArgs={{hash topic=@model postStream=@postStream}}
|
||||
/>
|
||||
</section>
|
||||
{{/if}}
|
||||
|
||||
{{#if @showPMMap}}
|
||||
<section class="topic-map__private-message-map">
|
||||
<PrivateMessageMap
|
||||
@topicDetails={{@topicDetails}}
|
||||
@showInvite={{@showInvite}}
|
||||
@removeAllowedGroup={{@removeAllowedGroup}}
|
||||
@removeAllowedUser={{@removeAllowedUser}}
|
||||
/>
|
||||
</section>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
</template>;
|
||||
|
||||
export default TopicMap;
|
||||
|
|
|
@ -240,9 +240,9 @@ export default Controller.extend(bufferedProperty("model"), {
|
|||
return Category.findById(categoryId)?.minimumRequiredTags || 0;
|
||||
},
|
||||
|
||||
@discourseComputed("model.posts_count")
|
||||
showBottomTopicMap(postsCount) {
|
||||
return postsCount > MIN_POSTS_COUNT;
|
||||
@discourseComputed("model.posts_count", "model.postStream.loadingFilter")
|
||||
showBottomTopicMap(postsCount, loading) {
|
||||
return !loading && postsCount > MIN_POSTS_COUNT;
|
||||
},
|
||||
|
||||
_removeDeleteOnOwnerReplyBookmarks() {
|
||||
|
|
Loading…
Reference in New Issue