Add label definition type for standalone time

This commit is contained in:
mm21
2024-11-22 17:58:23 +00:00
parent aa01161a40
commit 2f7d061ef1
10 changed files with 12 additions and 2 deletions

View File

@@ -225,6 +225,9 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
else if (definition.labelType === 'datetime') {
$input.prop('type', 'datetime-local')
}
else if (definition.labelType === 'time') {
$input.prop('type', 'time')
}
else if (definition.labelType === 'url') {
$input.prop("placeholder", t("promoted_attributes.url_placeholder"));