Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jovuit
funkwhale
Commits
fcd1e1b7
Unverified
Commit
fcd1e1b7
authored
Apr 22, 2020
by
Agate
💬
Browse files
Better placeholders for channels
parent
677a5dcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/audio/serializers.py
View file @
fcd1e1b7
...
...
@@ -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"
]
)
...
...
front/src/components/audio/ChannelEntries.vue
View file @
fcd1e1b7
...
...
@@ -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>
...
...
front/src/components/audio/ChannelSeries.vue
View file @
fcd1e1b7
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment