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

Do some import refactoring

parent 27c033e5
Branches
No related tags found
No related merge requests found
Pipeline #18299 failed
......@@ -14,7 +14,6 @@ import JSONLD from "@dbp-toolkit/common/jsonld";
import {TextSwitch} from './textswitch.js';
import {FileSink} from "@dbp-toolkit/file-handling";
import {name as pkgName} from './../package.json';
import {getPDFSignatureCount, getAnnotationTypeSelectOptionsHtml} from './utils.js';
import {send as notify} from '@dbp-toolkit/common/notification';
import {OrganizationSelect} from "@dbp-toolkit/organization-select";
import metadata from './dbp-official-signature-pdf-upload.metadata.json';
......@@ -108,7 +107,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
async _updateNeedsPlacementStatus(id) {
let file = this.queuedFiles[id];
let sigCount = await getPDFSignatureCount(file);
let sigCount = await utils.getPDFSignatureCount(file);
this.queuedFilesNeedsPlacement.delete(id);
if (sigCount > 0)
this.queuedFilesNeedsPlacement.set(id, true);
......@@ -796,7 +795,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
<div class="annotation-block" class="annotation-block-${key}-${id}">
<select class="select" @change=${e => { this.updateAnnotation(key, id, 'key1', e.target.value); }}>
<option value="">${i18n.t('official-pdf-upload.annotation-type-please-select')}</option>
${getAnnotationTypeSelectOptionsHtml(data.key1, this.lang)}
${utils.getAnnotationTypeSelectOptionsHtml(data.key1, this.lang)}
</select>
<dbp-organization-select subscribe="lang:lang,entry-point-url:entry-point-url,auth:auth"
value="${data.key2}"
......
import * as utils from "./utils";
import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
import JSONLD from "@dbp-toolkit/common/jsonld";
import * as commonUtils from "@dbp-toolkit/common/utils";
export class DBPSignatureBaseLitElement extends AdapterLitElement {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment