summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-01-06 11:01:38 +0200
committerLauri Ojansivu <x@xet7.org>2020-01-06 11:01:38 +0200
commitddce0ada094e6450be260b4cda21fdfa09ae0133 (patch)
treec6a079713ab28ab9c7a779f2e43d9b46673d2b4f
parent60df1fa1ee7aeaf0132c460d98e069e874603908 (diff)
downloadwekan-ddce0ada094e6450be260b4cda21fdfa09ae0133.tar.gz
wekan-ddce0ada094e6450be260b4cda21fdfa09ae0133.tar.bz2
wekan-ddce0ada094e6450be260b4cda21fdfa09ae0133.zip
Removed Custom HTML feature that does not work.
Thanks to xet7 ! Closes #2218
-rw-r--r--client/components/settings/settingBody.jade6
-rw-r--r--client/components/settings/settingBody.js8
-rw-r--r--models/settings.js8
-rw-r--r--server/migrations.js32
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(
{