mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 07:43:41 +08:00
remove TODO
This commit is contained in:
parent
d7a79aeb8a
commit
8b37dadec7
|
@ -17,6 +17,8 @@ export default {
|
||||||
keyValueStore = container.lookup('key-value-store:main'),
|
keyValueStore = container.lookup('key-value-store:main'),
|
||||||
user = container.lookup('current-user:main');
|
user = container.lookup('current-user:main');
|
||||||
|
|
||||||
|
screenTrack.set('keyValueStore', keyValueStore);
|
||||||
|
|
||||||
// Preconditions
|
// Preconditions
|
||||||
|
|
||||||
if (user) return; // must not be logged in
|
if (user) return; // must not be logged in
|
||||||
|
@ -27,8 +29,6 @@ export default {
|
||||||
if (siteSettings.login_required) return;
|
if (siteSettings.login_required) return;
|
||||||
if (!siteSettings.enable_signup_cta) return;
|
if (!siteSettings.enable_signup_cta) return;
|
||||||
|
|
||||||
screenTrack.set('keyValueStore', keyValueStore);
|
|
||||||
|
|
||||||
function checkSignupCtaRequirements() {
|
function checkSignupCtaRequirements() {
|
||||||
if (session.get('showSignupCta')) {
|
if (session.get('showSignupCta')) {
|
||||||
return; // already shown
|
return; // already shown
|
||||||
|
|
|
@ -10,8 +10,6 @@ const ScreenTrack = Ember.Object.extend({
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this.reset();
|
this.reset();
|
||||||
// TODO fix this
|
|
||||||
this.set('keyValueStore', Discourse.__container__.lookup('key-value-store:main'));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
start(topicId, topicController) {
|
start(topicId, topicController) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user