Better placeholders for channels

This commit is contained in:
Agate 2020-04-22 08:16:12 +02:00
parent 677a5dcf62
commit fcd1e1b724
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
3 changed files with 11 additions and 13 deletions

View File

@ -200,7 +200,7 @@ class ChannelUpdateSerializer(serializers.Serializer):
obj.save(update_fields=["metadata"])
if "description" in validated_data:
description_obj = common_utils.attach_content(
common_utils.attach_content(
obj.artist, "description", validated_data["description"]
)

View File

@ -13,12 +13,11 @@
</button>
</template>
<template v-if="!isLoading && objects.length === 0">
<div class="ui placeholder segment">
<div class="ui icon header">
<i class="music icon"></i>
No results matching your query
</div>
</div>
<empty-state @refresh="fetchData('tracks/')" :refresh="true">
<p>
<translate translate-context="Content/Channels/*">You may need to subscribe to this channel to see its content.</translate>
</p>
</empty-state>
</template>
</div>
</template>

View File

@ -18,12 +18,11 @@
</button>
</template>
<template v-if="!isLoading && objects.length === 0">
<div class="ui placeholder segment">
<div class="ui icon header">
<i class="compact disc icon"></i>
No results matching your query
</div>
</div>
<empty-state @refresh="fetchData('albums/')" :refresh="true">
<p>
<translate translate-context="Content/Channels/*">You may need to subscribe to this channel to see its contents.</translate>
</p>
</empty-state>
</template>
</div>
</template>