1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop, Mobile: Resolves #9158: Add a "Retry all" button when multiple resources could not be downloaded

This commit is contained in:
Laurent Cozic
2023-11-03 16:01:13 +00:00
parent d9bf0b7d82
commit b097ab29ee
2 changed files with 46 additions and 34 deletions

View File

@ -23,21 +23,23 @@ enum ReportItemType {
type RerportItemOrString = ReportItem | string;
interface ReportSection {
export type RetryAllHandler = ()=> void;
export interface ReportSection {
title: string;
body: RerportItemOrString[];
name?: string;
canRetryAll?: boolean;
retryAllHandler?: ()=> void;
retryAllHandler?: RetryAllHandler;
}
interface ReportItem {
export interface ReportItem {
type?: ReportItemType;
key?: string;
text?: string;
canRetry?: boolean;
canRetryType?: CanRetryType;
retryHandler?: ()=> void;
retryHandler?: RetryAllHandler;
}
export default class ReportService {
@ -272,6 +274,8 @@ export default class ReportService {
});
}
section = this.addRetryAllHandler(section);
sections.push(section);
}