fix: ended still didn't show up well

This commit is contained in:
Michel Roux 2024-01-20 09:58:08 +01:00
parent 2934935886
commit ccb1c72ad3
5 changed files with 20 additions and 19 deletions

View File

@ -3,7 +3,7 @@
"description": "🔊 Browse, manage and listen to podcasts",
"type": "project",
"license": "AGPL-3.0-or-later",
"version": "1.4.1",
"version": "1.4.2",
"require-dev": {
"nextcloud/ocp": "^28.0.1",
"psalm/phar": "^5.20.0",

14
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "7469155e9e67959892b895589f48d6f9",
"content-hash": "6c6423b79afd724cd8ebd22d02a3000e",
"packages": [],
"packages-dev": [
{
@ -94,16 +94,16 @@
},
{
"name": "php-cs-fixer/shim",
"version": "v3.47.1",
"version": "v3.48.0",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/shim.git",
"reference": "851a945ee0ae0f9d08c426ec2b1702bb34bd4ea2"
"reference": "bf0c65f1b2d943306b3574d42ae806578ce9cc3e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/851a945ee0ae0f9d08c426ec2b1702bb34bd4ea2",
"reference": "851a945ee0ae0f9d08c426ec2b1702bb34bd4ea2",
"url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/bf0c65f1b2d943306b3574d42ae806578ce9cc3e",
"reference": "bf0c65f1b2d943306b3574d42ae806578ce9cc3e",
"shasum": ""
},
"require": {
@ -140,9 +140,9 @@
"description": "A tool to automatically fix PHP code style",
"support": {
"issues": "https://github.com/PHP-CS-Fixer/shim/issues",
"source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.47.1"
"source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.48.0"
},
"time": "2024-01-16T18:54:50+00:00"
"time": "2024-01-19T21:45:09+00:00"
},
{
"name": "psalm/phar",

12
package-lock.json generated
View File

@ -1,16 +1,16 @@
{
"name": "repod",
"version": "1.4.1",
"version": "1.4.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "repod",
"version": "1.4.1",
"version": "1.4.2",
"license": "agpl",
"dependencies": {
"@nextcloud/axios": "^2.4.0",
"@nextcloud/dialogs": "^5.0.3",
"@nextcloud/dialogs": "^5.1.0",
"@nextcloud/initial-state": "^2.1.0",
"@nextcloud/l10n": "^2.2.0",
"@nextcloud/moment": "1.2.2",
@ -7184,9 +7184,9 @@
"peer": true
},
"node_modules/electron-to-chromium": {
"version": "1.4.639",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.639.tgz",
"integrity": "sha512-CkKf3ZUVZchr+zDpAlNLEEy2NJJ9T64ULWaDgy3THXXlPVPkLu3VOs9Bac44nebVtdwl2geSj6AxTtGDOxoXhg=="
"version": "1.4.640",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.640.tgz",
"integrity": "sha512-z/6oZ/Muqk4BaE7P69bXhUhpJbUM9ZJeka43ZwxsDshKtePns4mhBlh8bU5+yrnOnz3fhG82XLzGUXazOmsWnA=="
},
"node_modules/elliptic": {
"version": "6.5.4",

View File

@ -1,7 +1,7 @@
{
"name": "repod",
"description": "🔊 Browse, manage and listen to podcasts",
"version": "1.4.1",
"version": "1.4.2",
"bugs": {
"url": "https://git.crystalyx.net/Xefir/RePod/issues"
},
@ -19,7 +19,7 @@
},
"dependencies": {
"@nextcloud/axios": "^2.4.0",
"@nextcloud/dialogs": "^5.0.3",
"@nextcloud/dialogs": "^5.1.0",
"@nextcloud/initial-state": "^2.1.0",
"@nextcloud/l10n": "^2.2.0",
"@nextcloud/moment": "1.2.2",

View File

@ -101,10 +101,11 @@ export default {
methods: {
moment,
hasEnded(episode) {
return episode.action
&& episode.action.position !== 0
&& episode.action.total !== 0
return episode.action && (episode.action.action === 'DELETE' || (
episode.action.position > 0
&& episode.action.total > 0
&& episode.action.position >= episode.action.total
))
},
isCurrentEpisode(episode) {
return this.currentEpisode && this.currentEpisode.url === episode.url