fix(library): fix feedback

This commit is contained in:
MrTimscampi 2020-11-25 06:57:12 +01:00 committed by Julien Machiels
parent ff8d5a63d4
commit ee4f47e1ba
3 changed files with 16 additions and 18 deletions

View File

@ -126,4 +126,5 @@
"status": "Stav",
"filtersNotFound": "Nelze načíst filtry",
"unhandledException": "Nezachycená výjimka"
"unhandledException": "Nezachycená výjimka"
}

View File

@ -12,15 +12,19 @@
"connect": "Connect",
"byArtist": "By",
"collections": "Collections",
"connect": "Connect",
"continueListening": "Continue listening",
"continueWatching": "Continue watching",
"disc": "Disc {discNumber}",
"dislikes": "Dislikes",
"endDate": "End date",
"endsAt": "Ends at {time}",
"episodeNumber": "Episode {episodeNumber}",
"failedToRefreshItems": "Failed to refresh items",
"favorite": "Favorite",
"features": "Features",
"filter": "Filter",
"filtersNotFound": "Unable to load filters",
"genres": "Genres",
"home": "Home",
"incorrectUsernameOrPassword": "Incorrect username or password",
@ -28,6 +32,7 @@
"libraryEmpty": "This library is empty",
"libraryNotFound": "Library not found",
"liked": "Liked",
"likes": "Likes",
"login": "Login",
"logout": "Logout",
"more": "More",
@ -38,7 +43,6 @@
"networks": "Networks",
"noNetworkConnection": "No network connection",
"noResultsFound": "No results found",
"unliked": "Unliked",
"parentalRatings": "Parental Ratings",
"password": "Password",
"play": "Play",
@ -47,31 +51,17 @@
"rating": "Rating",
"releaseDate": "Release date",
"resumable": "Resumable",
"selectServer": "Select server",
"series": "Series",
"serverAddress": "Server address",
"serverAddressMustBeUrl": "Server address must be a valid URL",
"serverAddressRequired": "Server address is required",
"serverNotFound": "Server not found",
"serverVersionTooLow": "Server version needs to be 10.7.0 or higher",
"series": "Series",
"settings": "Settings",
"shows": "Shows",
"shuffleAll": "Shuffle all",
"signIn": "Sign in",
"unexpectedError": "Unexpected error",
"unhandledException": "Unhandled exception",
"upNext": "Up next",
"username": "Username",
"usernameRequired": "Username is required",
"filtersNotFound": "Unable to load filters",
"status": "Status",
"played": "Played",
"unplayed": "Unplayed",
"resumable": "Resumable",
"favorite": "Favorite",
"likes": "Likes",
"dislikes": "Dislikes",
"features": "Features",
"selectServer": "Select server",
"sortByType": "By {type}",
"specialFeatures": "Special Features",
"status": "Status",
@ -82,9 +72,11 @@
"trailer": "Trailer",
"unexpectedError": "Unexpected error",
"unhandledException": "Unhandled exception",
"unliked": "Unliked",
"unplayed": "Unplayed",
"upNext": "Up next",
"username": "Username",
"usernameRequired": "Username is required",
"videoTypes": "Video Types",
"years": "Years",
"youMayAlsoLike": "You may also like"

View File

@ -21,7 +21,7 @@
/>
</v-app-bar>
<v-container class="after-second-toolbar">
<item-grid v-if="items.length" :loading="loading" :items="items">
<item-grid :loading="loading" :items="items">
<h1 class="text-h5">
{{ $t('libraryEmpty') }}
</h1>
@ -154,6 +154,7 @@ export default Vue.extend({
},
methods: {
...mapActions('page', ['setPageTitle', 'setAppBarOpacity']),
...mapActions('snackbar', ['pushSnackbarMessage']),
onChangeType(type: string) {
this.viewType = type;
},
@ -277,6 +278,10 @@ export default Vue.extend({
console.error('Unable to refresh items:', error);
this.items = [];
this.itemsCount = 0;
this.pushSnackbarMessage({
message: this.$t('failedToRefreshItems'),
color: 'error'
});
}
this.loading = false;