From e134d34e864df1257563890dea6a1ee194924a8e Mon Sep 17 00:00:00 2001 From: Egon Zemmer Date: Thu, 12 Aug 2021 15:00:26 +0200 Subject: [PATCH] Solve #708: Customize "need help" button and URL. (partially) --- src/helpers/interfaces.ts | 1 + src/helpers/microlink.ts | 6 +++--- src/helpers/search.ts | 6 +++--- src/services/camera.ts | 6 +++--- src/services/local.ts | 4 ++-- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/helpers/interfaces.ts b/src/helpers/interfaces.ts index 3a9ec70d..150f411a 100644 --- a/src/helpers/interfaces.ts +++ b/src/helpers/interfaces.ts @@ -37,6 +37,7 @@ export interface IUpploadSettings { compressor?: (file: Blob) => Promise; transitionDuration?: number; disableModalClickClose?: boolean; + disableHelp?: boolean; } export interface IHandlersParams { diff --git a/src/helpers/microlink.ts b/src/helpers/microlink.ts index aa863429..52902a97 100644 --- a/src/helpers/microlink.ts +++ b/src/helpers/microlink.ts @@ -19,7 +19,7 @@ export class MicrolinkBaseClass extends UpploadService { exampleURL = ""; validator: (value: string) => boolean = () => true; - template = ({ translate }: IServiceTemplateParams): string => { + template = ({ translate, uppload }: IServiceTemplateParams): string => { return ` + )}?` : ""}