Fix for account id parameter in account tabs (#1711)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
7b9e036f01
commit
0f450262b9
+6
@@ -36,6 +36,12 @@
|
||||
{{dataObject.data[0].row[i]}}
|
||||
</span>
|
||||
<span *ngSwitchDefault>
|
||||
<span class="m-r-5" *ngIf="isValidUrl(dataObject.data[0].row[i])">
|
||||
<button mat-icon-button matTooltip="View Link" (click)="openSite(dataObject.data[0].row[i])"
|
||||
matTooltipPosition="right" class="small-icon">
|
||||
<fa-icon icon="eye" size="lg"></fa-icon>
|
||||
</button>
|
||||
</span>
|
||||
{{dataObject.data[0].row[i]}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
+5
@@ -26,3 +26,8 @@
|
||||
word-break: break-all;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.small-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
+9
@@ -133,4 +133,13 @@ export class DatatableSingleRowComponent implements OnInit {
|
||||
getInputName(attr: string): string {
|
||||
return this.datatables.getName(attr);
|
||||
}
|
||||
|
||||
isValidUrl(urlString: string): boolean {
|
||||
return this.datatables.isValidUrl(urlString);
|
||||
}
|
||||
|
||||
openSite(siteUrl: string) {
|
||||
window.open(siteUrl, '_blank');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user