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

Remove image upload button

parent fbebb701
No related branches found
No related tags found
No related merge requests found
Pipeline #52549 passed
......@@ -148,7 +148,6 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) {
});
this.dropArea.addEventListener('drop', this.handleDrop.bind(this), false);
this._('#fileElem').addEventListener('change', this.handleChange.bind(this, this._('#fileElem')));
this._('#imageElem').addEventListener('change', this.handleChange.bind(this, this._('#imageElem')));
this._('nav.modal-nav').addEventListener("scroll", this.handleScroll.bind(this));
......@@ -541,7 +540,7 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) {
${fileHandlingStyles.getFileHandlingCss()}
p {
margin-top: 0;
}
......@@ -606,14 +605,6 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) {
height: 100%;
}
.file-upload{
display: flex;
}
.file-upload label{
margin-left: 10px;
margin-right: 10px;
}
@media only screen
......@@ -694,28 +685,17 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) {
<div class="block">
<p>${i18n.t('intro')}</p>
</div>
<div class="file-upload">
<label class="button is-primary" for="fileElem" ?disabled="${this.disabled}">
${this.buttonLabel || i18n.t('upload-label')}
</label>
<label class="button is-primary ${classMap({"hidden": !this.hasEnabledSource("image")})}" for="imageElem" ?disabled="${this.disabled}">
${i18n.t('image-upload-label')}
</label>
</div>
<input ?disabled="${this.disabled}"
type="file"
id="fileElem"
multiple
accept="${mimeTypesToAccept(allowedMimeTypes)}"
name='file'>
<input ?disabled="${this.disabled}"
type="file"
id="imageElem"
single
accept="image/*"
name='image'
class="hidden">
<label class="button is-primary" for="fileElem" ?disabled="${this.disabled}">
${this.buttonLabel || i18n.t('upload-label')}
</label>
</div>
</div>
......
......@@ -9,7 +9,6 @@
"server-required": "Es wird unter der URL <a href=\"{{- url}}\"><tt>{{- url}}</tt></a> ein Server benötigt um die Dateien zu empfangen.",
"intro": "Sie können in diesem Bereich Dateien per Drag & Drop oder per Direktauswahl hochladen. Die Dateien dürfen sich auch in ZIP-Archiven befinden.",
"upload-label": "Dateiauswahl",
"image-upload-label": "Bild auswählen",
"upload-disabled-title": "Die Dateiauswahl ist während dem Hochladvorgang gesperrt!",
"page-leaving-warn-dialogue": "Vorsicht! Es befinden sich noch ungenutzte Dateien in der Zwischenablage. Wenn Sie auf 'OK' klicken, wird die bestehende Zwischenablage automatisch verworfen!",
"file-source": {
......
......@@ -9,7 +9,6 @@
"required-server": "You need an upload server listening at <a href=\"{{- url}}\"><tt>{{- url}}</tt></a> to receive the files...",
"intro": "Upload multiple files with the file dialog or by dragging and dropping images onto the dashed region.",
"upload-label": "Select some files",
"image-upload-label": "Select an image",
"upload-disabled-title": "The file selection is disabled while uploading!",
"page-leaving-warn-dialogue": "Attention! There are still unused files in the clipboard. If you click on 'OK', the existing clipboard is automatically discarded!",
"file-source": {
......
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