瀏覽代碼

Ensure we subscribe to currentSettings in login view

Johannes Zellner 1 年之前
父節點
當前提交
bda166ba50
共有 1 個文件被更改,包括 7 次插入0 次删除
  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();
+      },
+    });
   }
 });