You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Fixed schema
This commit is contained in:
@@ -55,7 +55,12 @@ class Command extends BaseCommand {
|
||||
const props: Record<string, any> = {};
|
||||
props.type = type;
|
||||
props.default = md.value;
|
||||
if (md.description && md.description('desktop')) props.description = md.description('desktop');
|
||||
|
||||
const description: string[] = [];
|
||||
if (md.label && md.label()) description.push(md.label());
|
||||
if (md.description && md.description('desktop')) description.push(md.description('desktop'));
|
||||
|
||||
if (description.length) props.description = description.join('. ');
|
||||
if (md.isEnum) props.enum = Object.keys(md.options()).map((v: any) => Setting.formatValue(key, v));
|
||||
if ('minimum' in md) props.minimum = md.minimum;
|
||||
if ('maximum' in md) props.maximum = md.maximum;
|
||||
|
||||
Reference in New Issue
Block a user