Revision 56966
Added by Konstantina Galouni almost 5 years ago
insertClaim.component.ts | ||
---|---|---|
37 | 37 |
|
38 | 38 |
<div> |
39 | 39 |
<div *ngIf="!claiming " (click)="insert()" style="width: 350px;" |
40 |
[class]="(((sources.length>0||inlineEntity) && results.length > 0 && (!claiming && errors.length == 0))?'linksbaskettitlesPortalColor ':'uk-disabled')+ ' linksbaskettitles uk-padding-small uk-text-center'">CONFIRM LINKING
|
|
41 |
<span class="uk-icon uk-float-right uk-text-bold uk-margin-small-right">
|
|
40 |
[class]="getButtonClass()">CONFIRM LINKING
|
|
41 |
<span [class]="(defaultColors?'':' uk-margin-small-top ')+'uk-icon uk-float-right uk-text-bold uk-margin-small-right'">
|
|
42 | 42 |
<svg width="30" height="30" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" |
43 | 43 |
icon="chevron-right" ratio="1.5"><polyline fill="none" stroke="#000" stroke-width="1.03" |
44 | 44 |
points="7 4 13 10 7 16"></polyline></svg> |
... | ... | |
71 | 71 |
@ViewChild(AlertModal) alert; |
72 | 72 |
@Input() errors: ClaimsErrorMessage[]; |
73 | 73 |
@Output() insertFinished = new EventEmitter(); |
74 |
@Input() defaultColors:boolean; |
|
74 | 75 |
|
75 | 76 |
public claiming = false; |
76 | 77 |
|
... | ... | |
491 | 492 |
|
492 | 493 |
console.error("Insert Claim (component): " + message, error); |
493 | 494 |
} |
495 |
|
|
496 |
getButtonClass(){ |
|
497 |
// [class]="(((sources.length>0||inlineEntity) && results.length > 0 && (!claiming && errors.length == 0))?' ':'uk-disabled')+ ' uk-button uk-button-large uk-text-center'+((defaultColors)?'':'')">CONFIRM LINKING |
|
498 |
// <span class=" uk-margin-small-top uk-icon uk-float-right uk-text-bold uk-margin-small-right"> } |
|
499 |
// [class]="(((sources.length>0||inlineEntity) && results.length > 0 && (!claiming && errors.length == 0))?'linksbaskettitlesPortalColor ':'uk-disabled')+ ' linksbaskettitles uk-padding-small uk-text-center'">CONFIRM LINKING |
|
500 |
// <span class="uk-icon uk-float-right uk-text-bold uk-margin-small-right"> |
|
501 |
let buttonClass= ""; |
|
502 |
if((this.sources.length>0||this.inlineEntity) && this.results.length > 0 && (!this.claiming && this.errors.length == 0)){ |
|
503 |
if(this.defaultColors){ |
|
504 |
buttonClass+=" linksbaskettitlesPortalColor "; |
|
505 |
} |
|
506 |
}else{ |
|
507 |
buttonClass+=" uk-disabled "; |
|
508 |
|
|
509 |
} |
|
510 |
if(this.defaultColors){ |
|
511 |
buttonClass+=" linksbaskettitles uk-padding-small "; |
|
512 |
}else{ |
|
513 |
buttonClass+=" uk-button uk-button-large "; |
|
514 |
} |
|
515 |
return buttonClass + "uk-text-center "; |
|
516 |
} |
|
494 | 517 |
} |
518 |
|
Also available in: Unified diff
[mergeResultLandingPages | Library]: Merging Trunk into branch 56883:56965