|
51 | 51 | <!-- Guest login form -->
|
52 | 52 | <form class="guest-form"
|
53 | 53 | v-if="isGuestAccessEnabled && !isUserAlreadyLoggedIn && isAuthenticationEnabled">
|
54 |
| - <h2 class="login-title">Guest Access</h2> |
| 54 | + <h2 class="login-title">{{ $t('login.guest-label') }}</h2> |
55 | 55 | <Button class="login-button" :click="guestLogin">
|
56 | 56 | {{ $t('login.proceed-guest-button') }}
|
57 | 57 | </Button>
|
58 | 58 | <p class="guest-intro">
|
59 |
| - This instance has guest access enabled.<br> |
60 |
| - Guests have view-only access to dashboards, |
61 |
| - so cannot write any changes to disk. |
| 59 | + {{ $t('login.guest-intro-1') }}<br> |
| 60 | + {{ $t('login.guest-intro-2') }} |
62 | 61 | </p>
|
63 | 62 | </form>
|
64 | 63 | <!-- Edge case - guest mode enabled, but no users configured -->
|
65 | 64 | <div class="not-configured" v-if="!isAuthenticationEnabled">
|
66 |
| - <h2>Error</h2> |
67 |
| - <p>Authentication is not enabled, or no users have been configured</p> |
| 65 | + <h2>{{ $t('login.error') }}</h2> |
| 66 | + <p>{{ $t('login.error-no-user-configured') }}</p> |
68 | 67 | <Button class="login-button" :click="guestLogin">
|
69 |
| - Go Home |
| 68 | + {{ $t('login.error-go-home-button') }} |
70 | 69 | </Button>
|
71 | 70 | </div>
|
72 | 71 | </div>
|
@@ -169,11 +168,11 @@ export default {
|
169 | 168 | guestLogin() {
|
170 | 169 | const isAllowed = this.isGuestAccessEnabled;
|
171 | 170 | if (isAllowed) {
|
172 |
| - this.$toasted.show('Logged in as Guest, Redirecting...', { className: 'toast-success' }); |
| 171 | + this.$toasted.show(this.$t('login.logged-in-guest'), { className: 'toast-success' }); |
173 | 172 | InfoHandler('Logged in as Guest', InfoKeys.AUTH);
|
174 | 173 | this.goHome();
|
175 | 174 | } else {
|
176 |
| - this.$toasted.show('Guest Access Not Allowed', { className: 'toast-error' }); |
| 175 | + this.$toasted.show(this.$t('login.error-guest-access'), { className: 'toast-error' }); |
177 | 176 | WarningInfoHandler('Guest Access Not Allowed', InfoKeys.AUTH);
|
178 | 177 | }
|
179 | 178 | },
|
|
0 commit comments