delete attachment string and disabled styles

This commit is contained in:
Kyle Spearrin 2018-04-11 13:58:40 -04:00
parent f725aa9a60
commit c7e451c75a
3 changed files with 11 additions and 6 deletions

View File

@ -1,4 +1,4 @@
@import "variables.scss";
@import "variables.scss";
* {
box-sizing: border-box;
@ -142,6 +142,11 @@ header {
text-decoration: underline;
}
&[disabled] {
opacity: 0.65;
cursor: default !important;
}
i + span {
margin-left: 5px;
}

View File

@ -1,4 +1,4 @@
@import "variables.scss";
@import "variables.scss";
.btn {
background-color: $button-backgound-color;
@ -43,7 +43,7 @@
&[disabled] {
opacity: 0.65;
cursor: default;
cursor: default !important;
}
&.block {

View File

@ -25,9 +25,9 @@
</div>
<small class="row-sub-label">{{a.sizeName}}</small>
<div class="action-buttons no-pad">
<button class="row-btn btn" type="button" appStopClick appBlurClick title="{{'delete' | i18n}}"
(click)="delete(a)" #deleteBtn [appApiAction]="deletePromises[a.id]"
[disabled]="deleteBtn.loading">
<button class="row-btn btn" type="button" appStopClick appBlurClick
title="{{'deleteAttachment' | i18n}}" (click)="delete(a)" #deleteBtn
[appApiAction]="deletePromises[a.id]" [disabled]="deleteBtn.loading">
<i class="fa fa-trash-o fa-lg fa-fw" [hidden]="deleteBtn.loading"></i>
<i class="fa fa-spinner fa-spin fa-lg fa-fw" [hidden]="!deleteBtn.loading"></i>
</button>