Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nextcloud-app-radio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
46
Issues
46
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
onny
nextcloud-app-radio
Commits
8fed9b6c
Commit
8fed9b6c
authored
Nov 19, 2020
by
onny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix empty content recent page
parent
00253d43
Pipeline
#212
failed with stages
in 11 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
20 deletions
+38
-20
src/components/Main.vue
src/components/Main.vue
+38
-20
No files found.
src/components/Main.vue
View file @
8fed9b6c
...
...
@@ -13,26 +13,14 @@
<EmptyContent
v-if=
"pageLoading"
icon=
"icon-loading"
/>
<template
v-if=
"tableData.length === 0 && !pageLoading"
>
<EmptyContent
v-show=
"$route.name==='FAVORITES'"
icon=
"icon-star"
>
No favorites yet
<template
#desc
>
Stations you mark as favorite will show up here
</
template
>
</EmptyContent>
<EmptyContent
v-if=
"tableData.length === 0 && !pageLoading"
v-show=
"$route.name==='SEARCH'"
icon=
"icon-search"
>
No search results
<
template
#desc
>
No stations were found matching your search term
</
template
>
</EmptyContent>
</template>
<EmptyContent
v-if=
"tableData.length === 0 && !pageLoading"
:icon=
"emptyContentIcon"
>
{{
emptyContentMessage
}}
<template
#desc
>
{{
emptyContentDesc
}}
</
template
>
</EmptyContent>
</AppContent>
<Sidebar
:show-sidebar=
"showSidebar"
...
...
@@ -79,6 +67,36 @@ export default {
player
()
{
return
this
.
$store
.
state
.
player
},
emptyContentMessage
()
{
if
(
this
.
$route
.
name
===
'
FAVORITES
'
)
{
return
'
No favorites yet
'
}
else
if
(
this
.
$route
.
name
===
'
RECENT
'
)
{
return
'
No recent stations yet
'
}
else
if
(
this
.
$route
.
name
===
'
SEARCH
'
)
{
return
'
No search results
'
}
return
'
No stations here
'
},
emptyContentIcon
()
{
if
(
this
.
$route
.
name
===
'
FAVORITES
'
)
{
return
'
icon-star
'
}
else
if
(
this
.
$route
.
name
===
'
RECENT
'
)
{
return
'
icon-recent
'
}
else
if
(
this
.
$route
.
name
===
'
SEARCH
'
)
{
return
'
icon-search
'
}
return
'
icon-radio
'
},
emptyContentDesc
()
{
if
(
this
.
$route
.
name
===
'
FAVORITES
'
)
{
return
'
Stations you mark as favorite will show up here
'
}
else
if
(
this
.
$route
.
name
===
'
RECENT
'
)
{
return
'
Stations you recently played will show up here
'
}
else
if
(
this
.
$route
.
name
===
'
SEARCH
'
)
{
return
'
No stations were found matching your search term
'
}
return
'
No stations here
'
},
},
watch
:
{
$route
:
'
onRoute
'
,
...
...
Write
Preview
Markdown
is supported
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