mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
add configuration field for separator
This commit is contained in:
parent
880d94e220
commit
3778a9ebcf
6 changed files with 31 additions and 5 deletions
|
|
@ -241,6 +241,7 @@ CardCustomField.register('cardCustomField');
|
|||
super.onCreated();
|
||||
|
||||
this.stringtemplateFormat = this.data().definition.settings.stringtemplateFormat;
|
||||
this.stringtemplateSeparator = this.data().definition.settings.stringtemplateSeparator;
|
||||
}
|
||||
|
||||
formattedValue() {
|
||||
|
|
@ -249,7 +250,7 @@ CardCustomField.register('cardCustomField');
|
|||
.split('\n')
|
||||
.filter(value => value.trim() !== '')
|
||||
.map(value => this.stringtemplateFormat.replace(/%\{value\}/gi, value))
|
||||
.join(' ');
|
||||
.join(this.stringtemplateSeparator ?? '');
|
||||
}
|
||||
|
||||
events() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue