mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Playlist row can always be deleted
This commit is contained in:
		
							parent
							
								
									db9ee301e3
								
							
						
					
					
						commit
						bd3dce26d9
					
				| @ -38,7 +38,7 @@ | ||||
|         <div v-if="userCanUpdate" class="mx-1" :class="isHovering ? '' : 'ml-6'"> | ||||
|           <ui-icon-btn icon="edit" borderless @click="clickEdit" /> | ||||
|         </div> | ||||
|         <div v-if="userCanDelete" class="mx-1"> | ||||
|         <div class="mx-1" :class="isHovering ? '' : 'ml-6'"> | ||||
|           <ui-icon-btn icon="close" borderless @click="removeClick" /> | ||||
|         </div> | ||||
|       </div> | ||||
| @ -75,8 +75,7 @@ export default { | ||||
|   }, | ||||
|   computed: { | ||||
|     translateDistance() { | ||||
|       if (!this.userCanUpdate && !this.userCanDelete) return 'translate-x-0' | ||||
|       else if (!this.userCanUpdate || !this.userCanDelete) return '-translate-x-12' | ||||
|       if (!this.userCanUpdate) return '-translate-x-12' | ||||
|       return '-translate-x-24' | ||||
|     }, | ||||
|     libraryItem() { | ||||
| @ -233,4 +232,4 @@ export default { | ||||
|   }, | ||||
|   mounted() {} | ||||
| } | ||||
| </script> | ||||
| </script> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user