mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[web] Disable buttons "edit" and "clear" when queue is empty
This commit is contained in:
parent
897d5854af
commit
bfd406206b
@ -25,12 +25,17 @@
|
|||||||
<a
|
<a
|
||||||
class="button is-small"
|
class="button is-small"
|
||||||
:class="{ 'is-info': edit_mode }"
|
:class="{ 'is-info': edit_mode }"
|
||||||
|
:disabled="queue_items.length === 0"
|
||||||
@click="edit_mode = !edit_mode"
|
@click="edit_mode = !edit_mode"
|
||||||
>
|
>
|
||||||
<mdicon class="icon" name="pencil" size="16" />
|
<mdicon class="icon" name="pencil" size="16" />
|
||||||
<span v-text="$t('page.queue.edit')" />
|
<span v-text="$t('page.queue.edit')" />
|
||||||
</a>
|
</a>
|
||||||
<a class="button is-small" @click="queue_clear">
|
<a
|
||||||
|
class="button is-small"
|
||||||
|
:disabled="queue_items.length === 0"
|
||||||
|
@click="queue_clear"
|
||||||
|
>
|
||||||
<mdicon class="icon" name="delete-empty" size="16" />
|
<mdicon class="icon" name="delete-empty" size="16" />
|
||||||
<span v-text="$t('page.queue.clear')" />
|
<span v-text="$t('page.queue.clear')" />
|
||||||
</a>
|
</a>
|
||||||
@ -190,11 +195,11 @@ export default {
|
|||||||
this.show_details_modal = true
|
this.show_details_modal = true
|
||||||
},
|
},
|
||||||
|
|
||||||
open_add_stream_dialog(item) {
|
open_add_stream_dialog() {
|
||||||
this.show_url_modal = true
|
this.show_url_modal = true
|
||||||
},
|
},
|
||||||
|
|
||||||
save_dialog(item) {
|
save_dialog() {
|
||||||
if (this.queue_items.length > 0) {
|
if (this.queue_items.length > 0) {
|
||||||
this.show_pls_save_modal = true
|
this.show_pls_save_modal = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user