|
@@ -59,6 +59,9 @@ BlazeComponent.extendComponent({
|
|
toggleTLS() {
|
|
toggleTLS() {
|
|
$('#mail-server-tls').toggleClass('is-checked');
|
|
$('#mail-server-tls').toggleClass('is-checked');
|
|
},
|
|
},
|
|
|
|
+ toggleHideLogo() {
|
|
|
|
+ $('#hide-logo').toggleClass('is-checked');
|
|
|
|
+ },
|
|
switchMenu(event) {
|
|
switchMenu(event) {
|
|
const target = $(event.target);
|
|
const target = $(event.target);
|
|
if (!target.hasClass('active')) {
|
|
if (!target.hasClass('active')) {
|
|
@@ -135,11 +138,15 @@ BlazeComponent.extendComponent({
|
|
this.setLoading(true);
|
|
this.setLoading(true);
|
|
$('li').removeClass('has-error');
|
|
$('li').removeClass('has-error');
|
|
|
|
|
|
|
|
+ const productName = $('#product-name').val().trim();
|
|
|
|
+ const hideLogoChange = ($('input[name=hideLogo]:checked').val() === 'true');
|
|
|
|
+
|
|
try {
|
|
try {
|
|
- const productName = $('#product-name').val().trim();
|
|
|
|
|
|
+
|
|
Settings.update(Settings.findOne()._id, {
|
|
Settings.update(Settings.findOne()._id, {
|
|
$set: {
|
|
$set: {
|
|
productName,
|
|
productName,
|
|
|
|
+ hideLogo: hideLogoChange,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -175,6 +182,7 @@ BlazeComponent.extendComponent({
|
|
'click button.js-email-invite': this.inviteThroughEmail,
|
|
'click button.js-email-invite': this.inviteThroughEmail,
|
|
'click button.js-save': this.saveMailServerInfo,
|
|
'click button.js-save': this.saveMailServerInfo,
|
|
'click button.js-send-smtp-test-email': this.sendSMTPTestEmail,
|
|
'click button.js-send-smtp-test-email': this.sendSMTPTestEmail,
|
|
|
|
+ 'click a.js-toggle-hide-logo': this.toggleHideLogo,
|
|
'click button.js-save-layout': this.saveLayout,
|
|
'click button.js-save-layout': this.saveLayout,
|
|
}];
|
|
}];
|
|
},
|
|
},
|