mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 12:38:21 -05:00
FIX: ensures panel's shareUrl is not erased by topic's shareUrl (#7035)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user