Skip to content

Commit a493591

Browse files
committed
better html id
1 parent 3a3d951 commit a493591

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/post-install.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- the "cup" has a handler, so move it a little leftward to make it visually in the center -->
55
<div class="tw-ml-[-30px]"><img width="160" src="{{AssetUrlPrefix}}/img/loading.png" alt aria-hidden="true"></div>
66
<div class="tw-my-[2em] tw-text-[18px]">
7-
<a id="goto-signup-or-signin" href="{{AppSubUrl}}{{if .IsAccountCreated}}/user/login{{else}}/user/sign_up{{end}}">{{ctx.Locale.Tr "install.installing_desc"}}</a>
7+
<a id="goto-after-install" href="{{AppSubUrl}}{{Iif .IsAccountCreated "/user/login" "/user/sign_up"}}">{{ctx.Locale.Tr "install.installing_desc"}}</a>
88
</div>
99
</div>
1010
</div>

web_src/js/features/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function initPreInstall() {
104104
}
105105

106106
function initPostInstall() {
107-
const el = document.querySelector('#goto-signup-or-signin');
107+
const el = document.querySelector('#goto-after-install');
108108
if (!el) return;
109109

110110
const targetUrl = el.getAttribute('href');

0 commit comments

Comments
 (0)