mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Patch Invitation Code
This commit is contained in:
parent
0dd82fedaf
commit
980fd4f61e
1 changed files with 12 additions and 5 deletions
|
@ -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 : function() {
|
||||
const setting = Settings.findOne();
|
||||
|
||||
if (!setting || !setting.disableRegistration) {
|
||||
$('#invitationcode').hide();
|
||||
}
|
||||
|
||||
return this.stop();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue