Forráskód Böngészése

Ensure we subscribe to currentSettings in login view

Johannes Zellner 1 éve
szülő
commit
bda166ba50
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      client/components/main/layouts.js

+ 7 - 0
client/components/main/layouts.js

@@ -35,6 +35,13 @@ Template.userFormsLayout.onCreated(function () {
         Meteor.loginWithOidc(options);
       }
     });
+
+    Meteor.subscribe('setting', {
+      onReady() {
+        templateInstance.currentSetting.set(ReactiveCache.getCurrentSetting());
+        return this.stop();
+      },
+    });
   }
 });