Skip to content
Snippets Groups Projects
Commit a07e3ce9 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Add an image upload button

parent a519d9b2
No related branches found
No related tags found
No related merge requests found
Pipeline #52529 passed
......@@ -691,6 +691,16 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) {
<label class="button is-primary" for="fileElem" ?disabled="${this.disabled}">
${this.buttonLabel || i18n.t('upload-label')}
</label>
<input ?disabled="${this.disabled}"
type="file"
id="imageElem"
single
accept="image/*"
name='image'
class="hidden">
<label class="button is-primary ${classMap({"hidden": !this.hasEnabledSource("image")})}" for="imageElem" ?disabled="${this.disabled}">
Bild upload
</label>
</div>
</div>
<div class="source-main ${classMap({"hidden": this.activeTarget !== "nextcloud" || this.nextcloudWebDavUrl === "" || this.nextcloudAuthUrl === ""})}">
......
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