This is an automated email from the ASF dual-hosted git repository. hshpak pushed a commit to branch fix/DATALAB-2939/frontend_side in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit a24b04faad6327ad4d4d063d16e39fefb4cce1ec Author: Hennadii_Shpak <[email protected]> AuthorDate: Tue Jul 26 15:03:16 2022 +0300 fixed condition which included status CREATED --- .../resources/webapp/src/app/resources/images/images.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.html b/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.html index 4cfd71419..b594c8574 100644 --- a/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.html +++ b/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.html @@ -234,15 +234,15 @@ </div> <bubble-up #actions class="list-menu" position="bottom-left" alternative="top-left"> <ul class="list-unstyled"> - <li [matTooltip]="element.status !== 'CREATED' && 'The image cannot be shared because it is not in the "Created" status' + <li [matTooltip]="element.status !== 'ACTIVE' && 'The image cannot be shared because it is not in the "Created" status' || userName !== element.user && 'Images may be shared by creators only'" matTooltipPosition="above" - [matTooltipDisabled]="userName === element.user && element.status === 'CREATED'" + [matTooltipDisabled]="userName === element.user && element.status === 'ACTIVE'" > <button class="action-button__share" (click)="onShare(element)" - [disabled]="userName !== element.user || element.status !== 'CREATED'" + [disabled]="userName !== element.user || element.status !== 'ACTIVE'" > <i class="material-icons">screen_share</i> <span>Share</span> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
