FIX: ensures panel's shareUrl is not erased by topic's shareUrl (#7035)

This commit is contained in:
Joffrey JAFFEUX
2019-02-20 19:33:54 +01:00
committed by GitHub
parent 664e90bd17
commit 28c24631b8
@@ -35,8 +35,10 @@ export default Ember.Component.extend({
return I18n.t("share.topic", { topicTitle });
},
@computed("topic.shareUrl")
shareUrl(shareUrl) {
@computed("panel.model.shareUrl", "topic.shareUrl")
shareUrl(forcedShareUrl, shareUrl) {
shareUrl = forcedShareUrl || shareUrl;
if (Ember.isEmpty(shareUrl)) {
return;
}