summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorHaben Amare <haben.amare@outlook.com>2020-05-25 14:59:32 +0000
committerHaben Amare <haben.amare@outlook.com>2020-05-25 22:02:51 +0000
commit3cf6ed916f4fd4c8e6e826ed4af1c2dd4c965110 (patch)
tree11b18e394d6cde20fbe8c69584ac0c87118a7940 /models
parent351d9d0c9577c9d543d543bc12a51388b0141324 (diff)
downloadwekan-3cf6ed916f4fd4c8e6e826ed4af1c2dd4c965110.tar.gz
wekan-3cf6ed916f4fd4c8e6e826ed4af1c2dd4c965110.tar.bz2
wekan-3cf6ed916f4fd4c8e6e826ed4af1c2dd4c965110.zip
add the 'currency' custom field type
Diffstat (limited to 'models')
-rw-r--r--models/customFields.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/models/customFields.js b/models/customFields.js
index cc798b16..435ebabb 100644
--- a/models/customFields.js
+++ b/models/customFields.js
@@ -22,7 +22,7 @@ CustomFields.attachSchema(
* type of the custom field
*/
type: String,
- allowedValues: ['text', 'number', 'date', 'dropdown'],
+ allowedValues: ['text', 'number', 'date', 'dropdown', 'currency'],
},
settings: {
/**
@@ -30,6 +30,10 @@ CustomFields.attachSchema(
*/
type: Object,
},
+ 'settings.currencySymbol': {
+ type: String,
+ optional: true,
+ },
'settings.dropdownItems': {
/**
* list of drop down items objects