- {#if tools}
- {#if Object.keys(tools).length > 0}
-
- {#if Object.keys(tools).length > 3}
-
- {/if}
-
- {/if}
- {:else}
-
-
-
-
-
- {/if}
+ {$i18n.t('Upload Files')}
+
+
{
@@ -208,7 +133,7 @@
}
}}
>
-
+
{$i18n.t('Capture')}
@@ -222,24 +147,63 @@
className="w-full"
>
{
if (fileUploadEnabled) {
- uploadFilesHandler();
+ if (!detectMobile()) {
+ screenCaptureHandler();
+ } else {
+ const cameraInputElement = document.getElementById('camera-input');
+
+ if (cameraInputElement) {
+ cameraInputElement.click();
+ }
+ }
}
}}
>
-
- {$i18n.t('Upload Files')}
+
+ {$i18n.t('Attach Notes')}
+
+
+
+
+ {
+ if (fileUploadEnabled) {
+ if (!detectMobile()) {
+ screenCaptureHandler();
+ } else {
+ const cameraInputElement = document.getElementById('camera-input');
+
+ if (cameraInputElement) {
+ cameraInputElement.click();
+ }
+ }
+ }
+ }}
+ >
+
+ {$i18n.t('Attach Knowledge')}
{#if fileUploadEnabled}
{#if $config?.features?.enable_google_drive_integration}
{
uploadGoogleDriveHandler();
}}
@@ -277,7 +241,7 @@
{#if $config?.features?.enable_onedrive_integration}