mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 04:53:39 +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'),
|
||||
user = container.lookup('current-user:main');
|
||||
|
||||
screenTrack.set('keyValueStore', keyValueStore);
|
||||
|
||||
// Preconditions
|
||||
|
||||
if (user) return; // must not be logged in
|
||||
|
@ -27,8 +29,6 @@ export default {
|
|||
if (siteSettings.login_required) return;
|
||||
if (!siteSettings.enable_signup_cta) return;
|
||||
|
||||
screenTrack.set('keyValueStore', keyValueStore);
|
||||
|
||||
function checkSignupCtaRequirements() {
|
||||
if (session.get('showSignupCta')) {
|
||||
return; // already shown
|
||||
|
|
|
@ -10,8 +10,6 @@ const ScreenTrack = Ember.Object.extend({
|
|||
|
||||
init() {
|
||||
this.reset();
|
||||
// TODO fix this
|
||||
this.set('keyValueStore', Discourse.__container__.lookup('key-value-store:main'));
|
||||
},
|
||||
|
||||
start(topicId, topicController) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user