Skip to content
Snippets Groups Projects
Unverified Commit 2274108b authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Show Test Nexcloud filepicker only on local development and allow file queuing (#26)

parent 0f037e00
No related branches found
No related tags found
No related merge requests found
Pipeline #11867 passed with warnings
......@@ -16,6 +16,7 @@ import {TextSwitch} from './textswitch.js';
import {NextcloudFilePicker} from "./vpu-nextcloud-file-picker";
import nextcloudWebAppPasswordURL from 'consts:nextcloudWebAppPasswordURL';
import nextcloudWebDavURL from 'consts:nextcloudWebDavURL';
import buildinfo from 'consts:buildinfo';
const i18n = createI18nInstance();
......@@ -913,6 +914,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(VPUSignatureLitEle
render() {
const placeholderUrl = commonUtils.getAssetURL('local/vpu-signature/official-signature-placeholder.png');
const showTestNextcloudFilePicker = buildinfo.env === 'local';
return html`
<div class="${classMap({hidden: !this.isLoggedIn() || !this.hasSignaturePermissions() || this.isLoading()})}">
......@@ -1076,8 +1078,14 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(VPUSignatureLitEle
<div class="${classMap({hidden: !this.isLoading()})}">
<vpu-mini-spinner></vpu-mini-spinner>
</div>
<!-- File picker test -->
<!-- <vpu-nextcloud-file-picker lang="${this.lang}" auth-url="${nextcloudWebAppPasswordURL}" web-dav-url="${nextcloudWebDavURL}"></vpu-nextcloud-file-picker>-->
<!-- File picker test -->
<vpu-nextcloud-file-picker class="${classMap({hidden: !showTestNextcloudFilePicker})}"
lang="${this.lang}"
auth-url="${nextcloudWebAppPasswordURL}"
web-dav-url="${nextcloudWebDavURL}"
@vpu-nextcloud-file-picker-file-downloaded="${(event) => {
this._("#file-upload").queueFile(event.detail.file);
}}"></vpu-nextcloud-file-picker>
`;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment