You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by yt...@apache.org on 2021/04/05 06:23:51 UTC
[incubator-datalab] 01/01: [DATALAB-2341] removed click events from
Upload files button when it is disabled
This is an automated email from the ASF dual-hosted git repository.
ytykhun pushed a commit to branch DATALAB-2341
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 2af6dc19985277dfbcd9a90035450166fe0a86df
Author: Yurii Tykhun <ty...@gmail.com>
AuthorDate: Mon Apr 5 09:23:24 2021 +0300
[DATALAB-2341] removed click events from Upload files button when it is disabled
---
.../bucket-browser/bucket-browser.component.html | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.html b/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.html
index 0096d8f..93ff8f4 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.html
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.html
@@ -27,8 +27,20 @@
<div class="submit m-bott-10 m-top-10">
<div class="left-side-butts">
<span [matTooltip]="isQueueFull ? 'Previous upload is still in progress, please wait.' : 'You have not permission to upload data'" matTooltipPosition="above" matTooltipDisabled="{{this.bucketStatus.upload && !isQueueFull}}">
- <button mat-raised-button type="button" class="butt first-btn" [disabled]="!this.bucketStatus.upload || allDisable || isSelectionOpened || !path || isQueueFull" (click)="handleFileInput($event)">
- <input [ngClass]="{'not-allowed': !this.bucketStatus.upload}" type="file" (change)="handleFileInput($event)" title="" multiple>
+ <button
+ mat-raised-button
+ type="button"
+ class="butt first-btn"
+ [disabled]="!this.bucketStatus.upload || allDisable || isSelectionOpened || !path || isQueueFull"
+ (click)="handleFileInput($event)"
+ >
+ <input
+ [ngClass]="{'not-allowed': !this.bucketStatus.upload || allDisable || isSelectionOpened || !path || isQueueFull}"
+ type="file"
+ (change)="handleFileInput($event)"
+ title=""
+ multiple
+ >
Upload files
</button>
</span>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org