Playlist row can always be deleted

This commit is contained in:
Nicholas Wallace 2024-05-26 17:22:47 +00:00
parent db9ee301e3
commit bd3dce26d9

View File

@ -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>