Skip to content

Commit

Permalink
Add:No series filter option for book libraries #1184
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Apr 28, 2024
1 parent 0e74c74 commit cfedcff
Show file tree
Hide file tree
Showing 22 changed files with 33 additions and 5 deletions.
9 changes: 8 additions & 1 deletion components/modals/FilterModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default {
]
},
sublistItems() {
return (this[this.sublist] || []).map((item) => {
const sublistItems = (this[this.sublist] || []).map((item) => {
if (typeof item === 'string') {
return {
text: item,
Expand All @@ -223,6 +223,13 @@ export default {
}
}
})
if (this.sublist === 'series') {
sublistItems.unshift({
text: this.$strings.MessageNoSeries,
value: this.$encode('no-series')
})
}
return sublistItems
},
filterData() {
return this.$store.state.libraries.filterData || {}
Expand Down
1 change: 1 addition & 0 deletions strings/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Žádné složky médií",
"MessageNoNetworkConnection": "Žádné připojení k síti",
"MessageNoPodcastsFound": "Nebyly nalezeny žádné podcasty",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Nebyly nutné žádné aktualizace",
"MessageNoUserPlaylists": "Nemáte žádné seznamy skladeb",
"MessageReportBugsAndContribute": "Nahlašte chyby, vyžádejte si funkce a přispěte na",
Expand Down
1 change: 1 addition & 0 deletions strings/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "Ingen podcasts fundet",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Ingen opdateringer var nødvendige",
"MessageNoUserPlaylists": "Du har ingen afspilningslister",
"MessageReportBugsAndContribute": "Rapporter fejl, anmod om funktioner og bidrag på",
Expand Down
1 change: 1 addition & 0 deletions strings/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Keine Medien Ordner",
"MessageNoNetworkConnection": "Keine Netzwerkverbindung",
"MessageNoPodcastsFound": "Keine Podcasts gefunden",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Keine Aktualisierungen waren notwendig",
"MessageNoUserPlaylists": "Keine Wiedergabelisten vorhanden",
"MessageReportBugsAndContribute": "Fehler melden, Funktionen anfordern und mitwirken",
Expand Down
1 change: 1 addition & 0 deletions strings/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "No podcasts found",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "No updates were necessary",
"MessageNoUserPlaylists": "You have no playlists",
"MessageReportBugsAndContribute": "Report bugs, request features, and contribute on",
Expand Down
1 change: 1 addition & 0 deletions strings/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "Ningún podcast encontrado",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "No fue necesario actualizar",
"MessageNoUserPlaylists": "No tienes lista de reproducciones",
"MessageReportBugsAndContribute": "Reporte erres, solicite funciones y contribuya en",
Expand Down
3 changes: 2 additions & 1 deletion strings/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Aucun dossier multimédia",
"MessageNoNetworkConnection": "Pas de connexion réseau",
"MessageNoPodcastsFound": "Aucun podcast trouvé",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Aucune mise à jour n’était nécessaire",
"MessageNoUserPlaylists": "Vous n’avez aucune liste de lecture",
"MessageReportBugsAndContribute": "Remonter des anomalies, demander des fonctionnalités et contribuer sur",
Expand All @@ -292,4 +293,4 @@
"ToastPodcastCreateSuccess": "Podcast créé",
"ToastRSSFeedCloseFailed": "Échec de la fermeture du flux RSS",
"ToastRSSFeedCloseSuccess": "Flux RSS fermé"
}
}
1 change: 1 addition & 0 deletions strings/gu.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "No podcasts found",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "No updates were necessary",
"MessageNoUserPlaylists": "You have no playlists",
"MessageReportBugsAndContribute": "Report bugs, request features, and contribute on",
Expand Down
1 change: 1 addition & 0 deletions strings/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "No podcasts found",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "No updates were necessary",
"MessageNoUserPlaylists": "You have no playlists",
"MessageReportBugsAndContribute": "Report bugs, request features, and contribute on",
Expand Down
1 change: 1 addition & 0 deletions strings/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "Nijedan podcast pronađen",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Aktualiziranje nije bilo potrebno",
"MessageNoUserPlaylists": "You have no playlists",
"MessageReportBugsAndContribute": "Prijavte bugove, zatržite featurese i doprinosite na",
Expand Down
1 change: 1 addition & 0 deletions strings/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Nincsenek médiamappák",
"MessageNoNetworkConnection": "Nincs hálózati kapcsolat",
"MessageNoPodcastsFound": "Nem találhatók podcastok",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Nem volt szükséges frissítés",
"MessageNoUserPlaylists": "Nincsenek lejátszási listái",
"MessageReportBugsAndContribute": "Hibák jelentése, funkciók kérése és hozzájárulás a",
Expand Down
3 changes: 2 additions & 1 deletion strings/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Nessuna Cartella Media",
"MessageNoNetworkConnection": "Nessuna connessione di rete",
"MessageNoPodcastsFound": "Nessun podcasts trovato",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Nessun aggiornamento necessario",
"MessageNoUserPlaylists": "Non hai nessuna Playlist",
"MessageReportBugsAndContribute": "Segnala bug, richiedi funzionalità e contribuisci",
Expand All @@ -292,4 +293,4 @@
"ToastPodcastCreateSuccess": "Podcast creato Correttamente",
"ToastRSSFeedCloseFailed": "Errore chiusura RSS feed",
"ToastRSSFeedCloseSuccess": "RSS feed chiuso"
}
}
1 change: 1 addition & 0 deletions strings/lt.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "Tinklalaidžių nerasta",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Nereikalingi jokie atnaujinimai",
"MessageNoUserPlaylists": "Neturite grojaraščių",
"MessageReportBugsAndContribute": "Praneškite apie klaidas, prašykite naujovių ir prisidėkite",
Expand Down
1 change: 1 addition & 0 deletions strings/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "Geen podcasts gevonden",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Geen bijwerkingen waren noodzakelijk",
"MessageNoUserPlaylists": "Je hebt geen afspeellijsten",
"MessageReportBugsAndContribute": "Rapporteer bugs, vraag functionaliteiten aan en draag bij op",
Expand Down
1 change: 1 addition & 0 deletions strings/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "Ingen podcaster funnet",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Ingen oppdatering var nødvendig",
"MessageNoUserPlaylists": "Du har ingen spillelister",
"MessageReportBugsAndContribute": "Rapporter feil, forespør funksjoner og tillegg og bidra på",
Expand Down
1 change: 1 addition & 0 deletions strings/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Brak folderów z mediami",
"MessageNoNetworkConnection": "Brak połączenia sieciowego",
"MessageNoPodcastsFound": "Nie znaleziono podcastów",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Brak aktualizacji",
"MessageNoUserPlaylists": "Nie posiadasz playlist",
"MessageReportBugsAndContribute": "Zgłoś błędy, pomysły i pomóż rozwijać aplikację na",
Expand Down
3 changes: 2 additions & 1 deletion strings/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Sem Pastas de Mídia",
"MessageNoNetworkConnection": "Nem conexão de rede",
"MessageNoPodcastsFound": "Nenhum podcast encontrado",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Nenhuma atualização é necessária",
"MessageNoUserPlaylists": "Você não tem listas de reprodução",
"MessageReportBugsAndContribute": "Reporte bugs, peça funcionalidades e contribua em",
Expand All @@ -292,4 +293,4 @@
"ToastPodcastCreateSuccess": "Podcast criado",
"ToastRSSFeedCloseFailed": "Falha ao fechar feed RSS",
"ToastRSSFeedCloseSuccess": "Feed RSS fechado"
}
}
1 change: 1 addition & 0 deletions strings/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Нет папок мультимедиа",
"MessageNoNetworkConnection": "Нет подключения к сети",
"MessageNoPodcastsFound": "Подкасты не найдены",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Обновления не требовались",
"MessageNoUserPlaylists": "У вас нет плейлистов",
"MessageReportBugsAndContribute": "Сообщайте об ошибках, запрашивайте функции и вносите свой вклад на",
Expand Down
1 change: 1 addition & 0 deletions strings/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "No Media Folders",
"MessageNoNetworkConnection": "No network connection",
"MessageNoPodcastsFound": "Inga podcasts hittade",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Inga uppdateringar var nödvändiga",
"MessageNoUserPlaylists": "Du har inga spellistor",
"MessageReportBugsAndContribute": "Rapportera buggar, begär funktioner och bidra på",
Expand Down
1 change: 1 addition & 0 deletions strings/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Теки медіа відсутні",
"MessageNoNetworkConnection": "Немає підключення до мережі",
"MessageNoPodcastsFound": "Подкастів не знайдено",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Оновлень не потрібно",
"MessageNoUserPlaylists": "У вас немає списків відтворення",
"MessageReportBugsAndContribute": "Повідомляйте про помилки, пропонуйте функції та долучайтеся на",
Expand Down
1 change: 1 addition & 0 deletions strings/vi-vn.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "Không có Thư Mục Phương Tiện",
"MessageNoNetworkConnection": "Không có kết nối mạng",
"MessageNoPodcastsFound": "Không tìm thấy podcast",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "Không cần cập nhật nào",
"MessageNoUserPlaylists": "Bạn không có danh sách phát nào",
"MessageReportBugsAndContribute": "Báo cáo lỗi, yêu cầu tính năng và đóng góp tại",
Expand Down
3 changes: 2 additions & 1 deletion strings/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"MessageNoMediaFolders": "没有媒体文件夹",
"MessageNoNetworkConnection": "无网络连接",
"MessageNoPodcastsFound": "未找到播客",
"MessageNoSeries": "No series",
"MessageNoUpdatesWereNecessary": "无需更新",
"MessageNoUserPlaylists": "你没有播放列表",
"MessageReportBugsAndContribute": "报告错误, 请求功能和贡献在",
Expand All @@ -292,4 +293,4 @@
"ToastPodcastCreateSuccess": "已成功创建播客",
"ToastRSSFeedCloseFailed": "关闭 RSS 源失败",
"ToastRSSFeedCloseSuccess": "RSS 源已关闭"
}
}

0 comments on commit cfedcff

Please sign in to comment.