Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing license error #198

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ui/src/i18n/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@
"session_expired": "Your session has expired",
"login_again": "Please login again",
"user": "User",
"password": "Password"
"password": "Password",
"enterprise_version_title": "Feature disabled",
"enterprise_version_message": "Reports available only on Enterprise version"
},
"caption": {
"recallTime": "Recall time",
Expand Down
4 changes: 3 additions & 1 deletion ui/src/i18n/locale-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@
"session_expired": "La tua sessione è scaduta",
"login_again": "Per favore, accedere nuovamente",
"user": "Utente",
"password": "Password"
"password": "Password",
"enterprise_version_title": "Funzionalità non attiva",
"enterprise_version_message": "Report disponibili solo sulla versione Enterprise"
},
"caption": {
"recallTime": "Tempo di Richiamata",
Expand Down
18 changes: 16 additions & 2 deletions ui/src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,20 @@
v-model="password"
/>
</sui-form-field>
<sui-message error>
<sui-message v-if="error === 'invalid_credentials'" error>
<sui-message-header>
<i class="exclamation triangle icon"></i>
{{ $t("login.invalid_credentials") }}
</sui-message-header>
<p>{{ $t("login.invalid_user_pass_try") }}.</p>
</sui-message>
<sui-message v-if="error === 'enterprise_version'" error>
<sui-message-header>
<i class="exclamation triangle icon"></i>
{{ $t("login.enterprise_version_title") }}
</sui-message-header>
<p>{{ $t("login.enterprise_version_message") }}.</p>
</sui-message>
<sui-message warning>
<sui-message-header>
<i class="exclamation triangle icon"></i>
Expand Down Expand Up @@ -128,7 +135,14 @@ export default {
this.loading = false;

// show errors
this.error = true;
if (
error.body.message ===
"Reports available only on Enterprise version"
) {
this.error = "enterprise_version";
} else {
this.error = "invalid_credentials";
}

// print error
console.error(error.body);
Expand Down
Loading