mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-20 01:28:57 +02:00
Fix:Save track order button hidden when player is open #380
This commit is contained in:
parent
94db55598a
commit
ad3fee8907
1 changed files with 9 additions and 6 deletions
|
@ -90,7 +90,7 @@
|
||||||
<p class="text-lg text-center px-8">{{ failed ? 'Failed to get local library item ' + localLibraryItemId : 'Loading..' }}</p>
|
<p class="text-lg text-center px-8">{{ failed ? 'Failed to get local library item ' + localLibraryItemId : 'Loading..' }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="orderChanged" class="fixed bottom-0 left-0 w-full py-4 px-4 bg-bg box-shadow-book flex items-center">
|
<div v-if="orderChanged" class="fixed left-0 w-full py-4 px-4 bg-bg box-shadow-book flex items-center" :style="{ bottom: playerLibraryItemId ? '100px' : '0px' }">
|
||||||
<div class="flex-grow" />
|
<div class="flex-grow" />
|
||||||
<ui-btn small color="success" @click="saveTrackOrder">Save Order</ui-btn>
|
<ui-btn small color="success" @click="saveTrackOrder">Save Order</ui-btn>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,6 +138,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
playerLibraryItemId() {
|
||||||
|
return this.$store.state.playerLibraryItemId
|
||||||
|
},
|
||||||
isIos() {
|
isIos() {
|
||||||
return this.$platform === 'ios'
|
return this.$platform === 'ios'
|
||||||
},
|
},
|
||||||
|
@ -198,12 +201,12 @@ export default {
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
var options = []
|
var options = []
|
||||||
if ( !this.isIos ) {
|
if (!this.isIos) {
|
||||||
options.push({ text: 'Scan', value: 'scan'})
|
options.push({ text: 'Scan', value: 'scan' })
|
||||||
options.push({ text: 'Force Re-Scan', value: 'rescan'})
|
options.push({ text: 'Force Re-Scan', value: 'rescan' })
|
||||||
options.push({ text: 'Remove', value: 'remove'})
|
options.push({ text: 'Remove', value: 'remove' })
|
||||||
}
|
}
|
||||||
options.push({ text: 'Remove & Delete Files', value: 'delete'})
|
options.push({ text: 'Remove & Delete Files', value: 'delete' })
|
||||||
return options
|
return options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue