You've already forked joplin
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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user