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

Migrate to "...super.properties"

parent b0d1efe8
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,8 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
nextcloudWebAppPasswordURL: { type: String, attribute: 'nextcloud-web-app-password-url' },
......@@ -88,7 +89,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
signaturePlacementInProgress: { type: Boolean, attribute: false },
withSigBlock: { type: Boolean, attribute: false },
isSignaturePlacement: { type: Boolean, attribute: false },
});
};
}
connectedCallback() {
......
......@@ -51,7 +51,8 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
* See: https://lit-element.polymer-project.org/guide/properties#initialize
*/
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
currentPage: { type: Number, attribute: false },
totalPages: { type: Number, attribute: false },
......@@ -63,7 +64,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
signature_width: { type: Number, attribute: 'signature-width' },
signature_height: { type: Number, attribute: 'signature-height' },
allowSignatureRotation: { type: Boolean, attribute: 'allow-signature-rotation' },
});
};
}
update(changedProperties) {
......
......@@ -66,7 +66,8 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
nextcloudWebAppPasswordURL: { type: String, attribute: 'nextcloud-web-app-password-url' },
......@@ -91,7 +92,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
signaturePlacementInProgress: { type: Boolean, attribute: false },
withSigBlock: { type: Boolean, attribute: false },
isSignaturePlacement: { type: Boolean, attribute: false },
});
};
}
connectedCallback() {
......
......@@ -70,9 +70,10 @@ export default class DBPSignatureLitElement extends DBPSignatureBaseLitElement {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
showNextcloudFilePicker: { type: Boolean, attribute: 'show-nextcloud-file-picker' },
});
};
}
/**
......
......@@ -53,7 +53,8 @@ class SignatureVerificationFull extends ScopedElementsMixin(DBPSignatureLitEleme
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
nextcloudWebAppPasswordURL: { type: String, attribute: 'nextcloud-web-app-password-url' },
......@@ -75,7 +76,7 @@ class SignatureVerificationFull extends ScopedElementsMixin(DBPSignatureLitEleme
currentFileName: { type: String, attribute: false },
previewInProgress: { type: Boolean, attribute: false },
isSignaturePlacement: { type: Boolean, attribute: false },
});
};
}
connectedCallback() {
......
......@@ -18,9 +18,10 @@ class SignatureVerification extends ScopedElementsMixin(DBPSignatureLitElement)
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
});
};
}
update(changedProperties) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment