Fixed leftover commas in json (#2183)
This commit is contained in:
parent
1902566e78
commit
518b8400e4
3 changed files with 8 additions and 15 deletions
|
|
@ -10,7 +10,7 @@ import { Router } from '@angular/router';
|
||||||
import { ToastrService } from 'ngx-toastr';
|
import { ToastrService } from 'ngx-toastr';
|
||||||
import { catchError } from 'rxjs/operators';
|
import { catchError } from 'rxjs/operators';
|
||||||
import { AccountService } from '../_services/account.service';
|
import { AccountService } from '../_services/account.service';
|
||||||
import {TranslocoService} from "@ngneat/transloco";
|
import {translate, TranslocoService} from "@ngneat/transloco";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ErrorInterceptor implements HttpInterceptor {
|
export class ErrorInterceptor implements HttpInterceptor {
|
||||||
|
|
@ -41,8 +41,9 @@ export class ErrorInterceptor implements HttpInterceptor {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Don't throw multiple Something unexpected went wrong
|
// Don't throw multiple Something unexpected went wrong
|
||||||
if (this.toastr.previousToastMessage !== 'Something unexpected went wrong.' && this.toastr.previousToastMessage !== 'errors.generic') {
|
const genericError = this.translocoService.translate('errors.generic');
|
||||||
this.toast('errors.generic');
|
if (this.toastr.previousToastMessage !== 'Something unexpected went wrong.' && this.toastr.previousToastMessage !== genericError) {
|
||||||
|
this.toast(genericError);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -953,7 +953,7 @@
|
||||||
"range-hours": "{{value}} {{hourWord}}",
|
"range-hours": "{{value}} {{hourWord}}",
|
||||||
"hour": "Hour",
|
"hour": "Hour",
|
||||||
"hours": "Hours",
|
"hours": "Hours",
|
||||||
"read-time-title": "{{series-info-cards.read-time-title}}",
|
"read-time-title": "{{series-info-cards.read-time-title}}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"series-info-cards": {
|
"series-info-cards": {
|
||||||
|
|
@ -1706,7 +1706,7 @@
|
||||||
"collection-updated": "Collection updated",
|
"collection-updated": "Collection updated",
|
||||||
"reading-list-deleted": "Reading list deleted",
|
"reading-list-deleted": "Reading list deleted",
|
||||||
"reading-list-updated": "Reading list updated",
|
"reading-list-updated": "Reading list updated",
|
||||||
"confirm-delete-reading-list": "'Are you sure you want to delete the reading list? This cannot be undone.'",
|
"confirm-delete-reading-list": "Are you sure you want to delete the reading list? This cannot be undone.",
|
||||||
"item-removed": "Item removed",
|
"item-removed": "Item removed",
|
||||||
"nothing-to-remove": "Nothing to remove",
|
"nothing-to-remove": "Nothing to remove",
|
||||||
"series-added-to-reading-list": "Series added to reading list",
|
"series-added-to-reading-list": "Series added to reading list",
|
||||||
|
|
|
||||||
12
openapi.json
12
openapi.json
|
|
@ -7,7 +7,7 @@
|
||||||
"name": "GPL-3.0",
|
"name": "GPL-3.0",
|
||||||
"url": "https://github.com/Kareadita/Kavita/blob/develop/LICENSE"
|
"url": "https://github.com/Kareadita/Kavita/blob/develop/LICENSE"
|
||||||
},
|
},
|
||||||
"version": "0.7.6.6"
|
"version": "0.7.6.8"
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
|
|
@ -12031,17 +12031,9 @@
|
||||||
"description": "Volume Id this Chapter belongs to",
|
"description": "Volume Id this Chapter belongs to",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
"created": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "When chapter was created",
|
|
||||||
"format": "date-time"
|
|
||||||
},
|
|
||||||
"lastModified": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "date-time"
|
|
||||||
},
|
|
||||||
"createdUtc": {
|
"createdUtc": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"description": "When chapter was created",
|
||||||
"format": "date-time"
|
"format": "date-time"
|
||||||
},
|
},
|
||||||
"lastModifiedUtc": {
|
"lastModifiedUtc": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue