mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix protected shield background visibility
This commit is contained in:
		
							parent
							
								
									494a980ecb
								
							
						
					
					
						commit
						35648b9f37
					
				| @ -97,13 +97,6 @@ class TabContext { | |||||||
| 
 | 
 | ||||||
|         this.attributes.invalidateAttributes(); |         this.attributes.invalidateAttributes(); | ||||||
| 
 | 
 | ||||||
|         this.$noteTitleRow.show(); // might be hidden from empty detail
 |  | ||||||
|         this.$tabContent.toggleClass("protected", this.note.isProtected); |  | ||||||
|         this.$protectButton.toggleClass("active", this.note.isProtected); |  | ||||||
|         this.$protectButton.prop("disabled", this.note.isProtected); |  | ||||||
|         this.$unprotectButton.toggleClass("active", !this.note.isProtected); |  | ||||||
|         this.$unprotectButton.prop("disabled", !this.note.isProtected || !protectedSessionHolder.isProtectedSessionAvailable()); |  | ||||||
| 
 |  | ||||||
|         this.setupClasses(); |         this.setupClasses(); | ||||||
| 
 | 
 | ||||||
|         this.setCurrentNotePathToHash(); |         this.setCurrentNotePathToHash(); | ||||||
| @ -169,6 +162,13 @@ class TabContext { | |||||||
|         this.$tabContent.addClass(this.note.cssClass); |         this.$tabContent.addClass(this.note.cssClass); | ||||||
|         this.$tabContent.addClass(utils.getNoteTypeClass(this.note.type)); |         this.$tabContent.addClass(utils.getNoteTypeClass(this.note.type)); | ||||||
|         this.$tabContent.addClass(utils.getMimeTypeClass(this.note.mime)); |         this.$tabContent.addClass(utils.getMimeTypeClass(this.note.mime)); | ||||||
|  | 
 | ||||||
|  |         this.$noteTitleRow.show(); // might be hidden from empty detail
 | ||||||
|  |         this.$tabContent.toggleClass("protected", this.note.isProtected); | ||||||
|  |         this.$protectButton.toggleClass("active", this.note.isProtected); | ||||||
|  |         this.$protectButton.prop("disabled", this.note.isProtected); | ||||||
|  |         this.$unprotectButton.toggleClass("active", !this.note.isProtected); | ||||||
|  |         this.$unprotectButton.prop("disabled", !this.note.isProtected || !protectedSessionHolder.isProtectedSessionAvailable()); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getComponent() { |     getComponent() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam