web/user: fix opening application with Enter not respecting new tab setting (#13115)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -116,8 +116,13 @@ export class LibraryPage extends AKElement {
|
|||||||
@bound
|
@bound
|
||||||
launchRequest(event: LibraryPageSearchSelected) {
|
launchRequest(event: LibraryPageSearchSelected) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
if (this.selectedApp?.launchUrl) {
|
if (!this.selectedApp?.launchUrl) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!this.selectedApp.openInNewTab) {
|
||||||
window.location.assign(this.selectedApp?.launchUrl);
|
window.location.assign(this.selectedApp?.launchUrl);
|
||||||
|
} else {
|
||||||
|
window.open(this.selectedApp.launchUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user