Revision 52842
Added by Argiro Kokogiannaki almost 6 years ago
claimResults.component.ts | ||
---|---|---|
15 | 15 |
<a *ngIf="result.url" target="_blank" [href]="result.url" >{{result.title?result.title:'[No title available]'}}</a> |
16 | 16 |
<span *ngIf="!result.url" >{{result.title?result.title:'[No title available]'}}</span> |
17 | 17 |
<a class="uk-button-default uk-align-right" *ngIf="!isSelected(result.id)" |
18 |
(click)="add(result)" class="uk-icon-button"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="plus" ratio="1"><rect x="9" y="1" width="1" height="17"></rect> |
|
19 |
<rect x="1" y="9" width="17" height="1"></rect></svg></a> |
|
18 |
(click)="add(result)" class="uk-icon-button icon-button-small"> |
|
19 |
<span class="uk-icon"> |
|
20 |
<svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="plus" ratio="0.8"><rect x="9" y="1" width="1" height="17"></rect><rect x="1" y="9" width="17" height="1"></rect></svg> |
|
21 |
</span> |
|
22 |
|
|
23 |
</a> |
|
20 | 24 |
<span *ngIf="isSelected(result.id)" class="uk-label uk-label-success">Added</span> |
21 | 25 |
</div> |
22 | 26 |
<span *ngIf="result.publisher!=null" class="uk-article-meta">Publisher: {{result.publisher}}</span> |
... | ... | |
30 | 34 |
export class ClaimResultsComponent { |
31 | 35 |
@Input() results; |
32 | 36 |
@Input() selectedResults; |
37 |
@Input() localStoragePrefix:string = ""; |
|
33 | 38 |
private isSelected(id:string){ |
34 | 39 |
|
35 | 40 |
var found:boolean = false; |
... | ... | |
54 | 59 |
timeout : 1000, |
55 | 60 |
pos : 'top-center' |
56 | 61 |
}); |
57 |
|
|
62 |
if(this.results != null){ |
|
63 |
localStorage.setItem(this.localStoragePrefix + "results", JSON.stringify(this.selectedResults)); |
|
64 |
} |
|
58 | 65 |
}else{ |
59 | 66 |
UIkit.notification({ |
60 | 67 |
message : 'The research result is already on your list.', |
Also available in: Unified diff
get changes from beta until r52841 (main change: Orps, claim layout, search pages layout)