2018-12-23 04:34:46 -05:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<transition name="fade">
|
2022-02-19 00:39:14 -05:00
|
|
|
<div v-if="show" class="modal is-active">
|
|
|
|
<div class="modal-background" @click="$emit('close')" />
|
2018-12-23 04:34:46 -05:00
|
|
|
<div class="modal-content fd-modal-card">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
2022-05-20 07:44:22 -04:00
|
|
|
<p class="title is-4" v-text="directory.path" />
|
2018-12-23 04:34:46 -05:00
|
|
|
</div>
|
|
|
|
<footer class="card-footer">
|
|
|
|
<a class="card-footer-item has-text-dark" @click="queue_add">
|
2022-05-20 07:44:22 -04:00
|
|
|
<mdicon class="icon" name="playlist-plus" size="16" />
|
|
|
|
<span class="is-size-7" v-text="$t('dialog.directory.add')" />
|
2018-12-23 04:34:46 -05:00
|
|
|
</a>
|
|
|
|
<a class="card-footer-item has-text-dark" @click="queue_add_next">
|
2022-05-20 07:44:22 -04:00
|
|
|
<mdicon class="icon" name="playlist-play" size="16" />
|
|
|
|
<span class="is-size-7" v-text="$t('dialog.directory.add-next')" />
|
2018-12-23 04:34:46 -05:00
|
|
|
</a>
|
|
|
|
<a class="card-footer-item has-text-dark" @click="play">
|
2022-05-20 07:44:22 -04:00
|
|
|
<mdicon class="icon" name="play" size="16" />
|
|
|
|
<span class="is-size-7" v-text="$t('dialog.directory.play')" />
|
2018-12-23 04:34:46 -05:00
|
|
|
</a>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-20 07:44:22 -04:00
|
|
|
<button class="modal-close is-large" aria-label="close" @click="$emit('close')" />
|
2018-12-23 04:34:46 -05:00
|
|
|
</div>
|
|
|
|
</transition>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import webapi from '@/webapi'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'ModalDialogDirectory',
|
2020-04-11 13:43:53 -04:00
|
|
|
props: ['show', 'directory'],
|
2022-02-19 01:05:59 -05:00
|
|
|
emits: ['close'],
|
2018-12-23 04:34:46 -05:00
|
|
|
|
|
|
|
methods: {
|
|
|
|
play: function () {
|
|
|
|
this.$emit('close')
|
2022-02-19 00:39:14 -05:00
|
|
|
webapi.player_play_expression(
|
|
|
|
'path starts with "' + this.directory.path + '" order by path asc',
|
|
|
|
false
|
|
|
|
)
|
2018-12-23 04:34:46 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
queue_add: function () {
|
|
|
|
this.$emit('close')
|
2022-02-19 00:39:14 -05:00
|
|
|
webapi.queue_expression_add(
|
|
|
|
'path starts with "' + this.directory.path + '" order by path asc'
|
|
|
|
)
|
2018-12-23 04:34:46 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
queue_add_next: function () {
|
|
|
|
this.$emit('close')
|
2022-02-19 00:39:14 -05:00
|
|
|
webapi.queue_expression_add_next(
|
|
|
|
'path starts with "' + this.directory.path + '" order by path asc'
|
|
|
|
)
|
2018-12-23 04:34:46 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-19 00:39:14 -05:00
|
|
|
<style></style>
|