mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 11:56:01 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into next61
This commit is contained in:
		@@ -6,7 +6,7 @@ function parse(value) {
 | 
			
		||||
        if (token === 'promoted') {
 | 
			
		||||
            defObj.isPromoted = true;
 | 
			
		||||
        }
 | 
			
		||||
        else if (['text', 'number', 'boolean', 'date', 'url'].includes(token)) {
 | 
			
		||||
        else if (['text', 'number', 'boolean', 'date', 'datetime', 'url'].includes(token)) {
 | 
			
		||||
            defObj.labelType = token;
 | 
			
		||||
        }
 | 
			
		||||
        else if (['single', 'multi'].includes(token)) {
 | 
			
		||||
 
 | 
			
		||||
@@ -115,6 +115,7 @@ const TPL = `
 | 
			
		||||
                  <option value="number">Number</option>
 | 
			
		||||
                  <option value="boolean">Boolean</option>
 | 
			
		||||
                  <option value="date">Date</option>
 | 
			
		||||
                  <option value="datetime">Datetime</option>
 | 
			
		||||
                  <option value="url">URL</option>
 | 
			
		||||
                </select>
 | 
			
		||||
            </td>
 | 
			
		||||
 
 | 
			
		||||
@@ -197,6 +197,9 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
 | 
			
		||||
            else if (definition.labelType === 'date') {
 | 
			
		||||
                $input.prop("type", "date");
 | 
			
		||||
            }
 | 
			
		||||
            else if (definition.labelType === 'datetime') {
 | 
			
		||||
                $input.prop('type', 'datetime-local')
 | 
			
		||||
            }
 | 
			
		||||
            else if (definition.labelType === 'url') {
 | 
			
		||||
                $input.prop("placeholder", "http://website...");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user