mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
import { ReactiveCache } from '/imports/reactiveCache';
|
|
|
|
Template.invitationCode.onRendered(function() {
|
|
Meteor.subscribe('setting', {
|
|
onReady() {
|
|
const setting = ReactiveCache.getCurrentSetting();
|
|
|
|
if (!setting || !setting.disableRegistration) {
|
|
$('#invitationcode').hide();
|
|
}
|
|
|
|
return this.stop();
|
|
},
|
|
});
|
|
});
|