mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	attribute overview shows only owned attributes
This commit is contained in:
		
							parent
							
								
									cf96baad48
								
							
						
					
					
						commit
						6704b755d8
					
				
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "trilium",
 | 
			
		||||
  "version": "0.26.1",
 | 
			
		||||
  "version": "0.27.0-beta",
 | 
			
		||||
  "lockfileVersion": 1,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
 | 
			
		||||
@ -85,8 +85,11 @@ async function showAttributes() {
 | 
			
		||||
        $promotedAttributesContainer.empty().append($tbody);
 | 
			
		||||
    }
 | 
			
		||||
    else if (note.type !== 'relation-map') {
 | 
			
		||||
        if (attributes.length > 0) {
 | 
			
		||||
            for (const attribute of attributes) {
 | 
			
		||||
        // display only "own" notes
 | 
			
		||||
        const ownedAttributes = attributes.filter(attr => attr.noteId === note.noteId);
 | 
			
		||||
 | 
			
		||||
        if (ownedAttributes.length > 0) {
 | 
			
		||||
            for (const attribute of ownedAttributes) {
 | 
			
		||||
                if (attribute.type === 'label') {
 | 
			
		||||
                    $attributeListInner.append(utils.formatLabel(attribute) + " ");
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
@ -53,6 +53,7 @@
 | 
			
		||||
    padding: 10px 0 10px 0;
 | 
			
		||||
    margin: 0 10px 0 16px;
 | 
			
		||||
    border: 1px solid #ccc;
 | 
			
		||||
    border-radius: 5px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#context-menu-container {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user