web/admin: fix geo display with no city
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -133,7 +133,9 @@ export class EventInfoPage extends AKElement {
 | 
			
		||||
                                        <div class="pf-c-description-list__text">
 | 
			
		||||
                                            <div>${this.event.clientIp || t`-`}</div>
 | 
			
		||||
                                            ${geo
 | 
			
		||||
                                                ? html`<small>${geo.city}, ${geo.country}</small> `
 | 
			
		||||
                                                ? html`<small
 | 
			
		||||
                                                      >${[geo.city, geo.country].join(", ")}</small
 | 
			
		||||
                                                  >`
 | 
			
		||||
                                                : html``}
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                    </dd>
 | 
			
		||||
 | 
			
		||||
@ -77,7 +77,7 @@ export class EventListPage extends TablePage<Event> {
 | 
			
		||||
                : html`-`,
 | 
			
		||||
            html`<span>${item.created?.toLocaleString()}</span>`,
 | 
			
		||||
            html`<div>${item.clientIp || t`-`}</div>
 | 
			
		||||
                ${geo ? html`<small>${geo.city}, ${geo.country}</small> ` : html``}`,
 | 
			
		||||
                ${geo ? html`<small>${[geo.city, geo.country].join(", ")}</small>` : html``}`,
 | 
			
		||||
            html`<span>${item.tenant?.name || t`-`}</span>`,
 | 
			
		||||
            html`<a href="#/events/log/${item.pk}">
 | 
			
		||||
                <i class="fas fa-share-square"></i>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user