DEV: Only include userTips if user is present
This commit is contained in:
parent
9fd2207826
commit
53695e7d29
|
@ -62,6 +62,10 @@ export default class GlimmerTopicTimeline extends Component {
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
addUserTip(element) {
|
addUserTip(element) {
|
||||||
|
if (!this.currentUser) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.currentUser.showUserTip({
|
this.currentUser.showUserTip({
|
||||||
id: "topic_timeline",
|
id: "topic_timeline",
|
||||||
titleText: I18n.t("user_tips.topic_timeline.title"),
|
titleText: I18n.t("user_tips.topic_timeline.title"),
|
||||||
|
|
|
@ -34,7 +34,7 @@ acceptance("Topic Notifications button", function (needs) {
|
||||||
);
|
);
|
||||||
|
|
||||||
const timelineNotificationOptions = selectKit(
|
const timelineNotificationOptions = selectKit(
|
||||||
".topic-timeline .widget-component-connector .topic-notifications-options"
|
".topic-timeline .topic-notifications-options"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
|
|
Loading…
Reference in New Issue