Better placeholders for channels
This commit is contained in:
parent
677a5dcf62
commit
fcd1e1b724
|
@ -200,7 +200,7 @@ class ChannelUpdateSerializer(serializers.Serializer):
|
||||||
obj.save(update_fields=["metadata"])
|
obj.save(update_fields=["metadata"])
|
||||||
|
|
||||||
if "description" in validated_data:
|
if "description" in validated_data:
|
||||||
description_obj = common_utils.attach_content(
|
common_utils.attach_content(
|
||||||
obj.artist, "description", validated_data["description"]
|
obj.artist, "description", validated_data["description"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,11 @@
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!isLoading && objects.length === 0">
|
<template v-if="!isLoading && objects.length === 0">
|
||||||
<div class="ui placeholder segment">
|
<empty-state @refresh="fetchData('tracks/')" :refresh="true">
|
||||||
<div class="ui icon header">
|
<p>
|
||||||
<i class="music icon"></i>
|
<translate translate-context="Content/Channels/*">You may need to subscribe to this channel to see its content.</translate>
|
||||||
No results matching your query
|
</p>
|
||||||
</div>
|
</empty-state>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -18,12 +18,11 @@
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!isLoading && objects.length === 0">
|
<template v-if="!isLoading && objects.length === 0">
|
||||||
<div class="ui placeholder segment">
|
<empty-state @refresh="fetchData('albums/')" :refresh="true">
|
||||||
<div class="ui icon header">
|
<p>
|
||||||
<i class="compact disc icon"></i>
|
<translate translate-context="Content/Channels/*">You may need to subscribe to this channel to see its contents.</translate>
|
||||||
No results matching your query
|
</p>
|
||||||
</div>
|
</empty-state>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue