FIX: ensures panel's shareUrl is not erased by topic's shareUrl (#7035)
This commit is contained in:
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue