mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Removed Custom HTML feature that does not work.
Thanks to xet7 ! Closes #2218
This commit is contained in:
parent
60df1fa1ee
commit
ddce0ada09
4 changed files with 0 additions and 54 deletions
|
|
@ -184,12 +184,6 @@ template(name='layoutSettings')
|
||||||
.title {{_ 'custom-product-name'}}
|
.title {{_ 'custom-product-name'}}
|
||||||
.form-group
|
.form-group
|
||||||
input.wekan-form-control#product-name(type="text", placeholder="" value="{{currentSetting.productName}}")
|
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
|
li
|
||||||
button.js-save-layout.primary {{_ 'save'}}
|
button.js-save-layout.primary {{_ 'save'}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -171,20 +171,12 @@ BlazeComponent.extendComponent({
|
||||||
const displayAuthenticationMethod =
|
const displayAuthenticationMethod =
|
||||||
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
|
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
|
||||||
const defaultAuthenticationMethod = $('#defaultAuthenticationMethod').val();
|
const defaultAuthenticationMethod = $('#defaultAuthenticationMethod').val();
|
||||||
const customHTMLafterBodyStart = $('#customHTMLafterBodyStart')
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const customHTMLbeforeBodyEnd = $('#customHTMLbeforeBodyEnd')
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Settings.update(Settings.findOne()._id, {
|
Settings.update(Settings.findOne()._id, {
|
||||||
$set: {
|
$set: {
|
||||||
productName,
|
productName,
|
||||||
hideLogo: hideLogoChange,
|
hideLogo: hideLogoChange,
|
||||||
customHTMLafterBodyStart,
|
|
||||||
customHTMLbeforeBodyEnd,
|
|
||||||
displayAuthenticationMethod,
|
displayAuthenticationMethod,
|
||||||
defaultAuthenticationMethod,
|
defaultAuthenticationMethod,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -33,14 +33,6 @@ Settings.attachSchema(
|
||||||
type: String,
|
type: String,
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
customHTMLafterBodyStart: {
|
|
||||||
type: String,
|
|
||||||
optional: true,
|
|
||||||
},
|
|
||||||
customHTMLbeforeBodyEnd: {
|
|
||||||
type: String,
|
|
||||||
optional: true,
|
|
||||||
},
|
|
||||||
displayAuthenticationMethod: {
|
displayAuthenticationMethod: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
optional: true,
|
optional: true,
|
||||||
|
|
|
||||||
|
|
@ -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', () => {
|
Migrations.add('add-displayAuthenticationMethod', () => {
|
||||||
Settings.update(
|
Settings.update(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue