mirror of https://github.com/wekan/wekan
commit
1a7796f2ca
@ -1,6 +1,13 @@ |
||||
Template.invitationCode.onRendered(() => { |
||||
const setting = Settings.findOne(); |
||||
if (!setting || !setting.disableRegistration) { |
||||
$('#invitationcode').hide(); |
||||
} |
||||
Template.invitationCode.onRendered(function() { |
||||
Meteor.subscribe('setting', { |
||||
onReady() { |
||||
const setting = Settings.findOne(); |
||||
|
||||
if (!setting || !setting.disableRegistration) { |
||||
$('#invitationcode').hide(); |
||||
} |
||||
|
||||
return this.stop(); |
||||
}, |
||||
}); |
||||
}); |
||||
|
Loading…
Reference in new issue