diff options
-rw-r--r-- | client/components/settings/settingBody.jade | 6 | ||||
-rw-r--r-- | client/components/settings/settingBody.js | 8 | ||||
-rw-r--r-- | models/settings.js | 8 | ||||
-rw-r--r-- | server/migrations.js | 32 |
4 files changed, 0 insertions, 54 deletions
diff --git a/client/components/settings/settingBody.jade b/client/components/settings/settingBody.jade index 877fe6e2..835a3b81 100644 --- a/client/components/settings/settingBody.jade +++ b/client/components/settings/settingBody.jade @@ -184,12 +184,6 @@ template(name='layoutSettings') .title {{_ 'custom-product-name'}} .form-group input.wekan-form-control#product-name(type="text", placeholder="" value="{{currentSetting.productName}}") - li.layout-form - .title {{_ 'add-custom-html-after-body-start'}} - textarea#customHTMLafterBodyStart.wekan-form-control= currentSetting.customHTMLafterBodyStart - li.layout-form - .title {{_ 'add-custom-html-before-body-end'}} - textarea#customHTMLbeforeBodyEnd.wekan-form-control= currentSetting.customHTMLbeforeBodyEnd li button.js-save-layout.primary {{_ 'save'}} diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index 4ff5aedd..319c066b 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -171,20 +171,12 @@ BlazeComponent.extendComponent({ const displayAuthenticationMethod = $('input[name=displayAuthenticationMethod]:checked').val() === 'true'; const defaultAuthenticationMethod = $('#defaultAuthenticationMethod').val(); - const customHTMLafterBodyStart = $('#customHTMLafterBodyStart') - .val() - .trim(); - const customHTMLbeforeBodyEnd = $('#customHTMLbeforeBodyEnd') - .val() - .trim(); try { Settings.update(Settings.findOne()._id, { $set: { productName, hideLogo: hideLogoChange, - customHTMLafterBodyStart, - customHTMLbeforeBodyEnd, displayAuthenticationMethod, defaultAuthenticationMethod, }, diff --git a/models/settings.js b/models/settings.js index 8eb02c5b..63bcd7f3 100644 --- a/models/settings.js +++ b/models/settings.js @@ -33,14 +33,6 @@ Settings.attachSchema( type: String, optional: true, }, - customHTMLafterBodyStart: { - type: String, - optional: true, - }, - customHTMLbeforeBodyEnd: { - type: String, - optional: true, - }, displayAuthenticationMethod: { type: Boolean, optional: true, diff --git a/server/migrations.js b/server/migrations.js index 92339110..1b7146c5 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -472,38 +472,6 @@ Migrations.add('add-hide-logo', () => { ); }); -Migrations.add('add-custom-html-after-body-start', () => { - Settings.update( - { - customHTMLafterBodyStart: { - $exists: false, - }, - }, - { - $set: { - customHTMLafterBodyStart: '', - }, - }, - noValidateMulti, - ); -}); - -Migrations.add('add-custom-html-before-body-end', () => { - Settings.update( - { - customHTMLbeforeBodyEnd: { - $exists: false, - }, - }, - { - $set: { - customHTMLbeforeBodyEnd: '', - }, - }, - noValidateMulti, - ); -}); - Migrations.add('add-displayAuthenticationMethod', () => { Settings.update( { |