Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot committed Nov 27, 2024
1 parent c4e352e commit 4f7a924
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
10 changes: 5 additions & 5 deletions src/frontend/src/assets/locales/bu.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"errors": {
"alreadyUsedCompanyEmail": "Company with email already exists",
"alreadyUserAdminEmail": "Admin with email already exists"
},
"menu": {
"Agents": "ေအးဂျင်မ့ ျား ",
"Angaza SHS": "Angaza SHS",
Expand Down Expand Up @@ -553,9 +557,5 @@
"week": "ရက်သတf ပတ် | အပတ်စV်",
"yes": "ဟတု ်/မှန",
"yesterday": "မေနက့ "
},
"errors": {
"alreadyUsedCompanyEmail": "Company with email already exists",
"alreadyUserAdminEmail": "Admin with email already exists"
}
}
}
10 changes: 5 additions & 5 deletions src/frontend/src/assets/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"errors": {
"alreadyUsedCompanyEmail": "Company with email already exists",
"alreadyUserAdminEmail": "Admin with email already exists"
},
"menu": {
"Agents": "Agents",
"Angaza SHS": "Angaza SHS",
Expand Down Expand Up @@ -553,9 +557,5 @@
"week": "Week | Weekly",
"yes": "Yes",
"yesterday": "Yesterday"
},
"errors": {
"alreadyUsedCompanyEmail": "Company with email already exists",
"alreadyUserAdminEmail": "Admin with email already exists"
}
}
}
8 changes: 4 additions & 4 deletions src/frontend/src/assets/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"errors": {
"alreadyUsedCompanyEmail": "Une entreprise avec cet e-mail existe déjà",
"alreadyUserAdminEmail": "Un administrateur avec cet e-mail existe déjà"
},
"menu": {
"Agents": "Agents",
"Angaza SHS": "Angaza SHS",
Expand Down Expand Up @@ -553,9 +557,5 @@
"week": "Semaine | Hebdomadaire",
"yes": "Oui",
"yesterday": "Hier"
},
"errors": {
"alreadyUsedCompanyEmail": "Une entreprise avec cet e-mail existe déjà",
"alreadyUserAdminEmail": "Un administrateur avec cet e-mail existe déjà"
}
}
16 changes: 8 additions & 8 deletions src/frontend/src/modules/Register/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export default {
},
successMessage: "",
succeed: true,
errorMessage: this.$tc("phrases.somethingWentWrong")
errorMessage: this.$tc("phrases.somethingWentWrong"),
}
},
mounted() {
Expand Down Expand Up @@ -545,12 +545,14 @@ export default {
this.loading = false
// set appropriate error message
if(e?.message === "validation.unique"){
this.errorMessage = this.$tc('errors.alreadyUsedCompanyEmail')
} else if (e?.message && e?.message.includes("Integrity constraint violation")){
if (e?.message === "validation.unique") {
this.errorMessage = this.$tc("errors.alreadyUsedCompanyEmail")
} else if (
e?.message &&
e?.message.includes("Integrity constraint violation")
) {
this.errorMessage = this.$tc("errors.alreadyUserAdminEmail")
}
}
},
validUsageType(plugin_usage_type, customer_usage_types) {
Expand Down Expand Up @@ -632,9 +634,7 @@ export default {
border-radius: 5px;
padding: 1.3vw;
margin-top: 1vh;
box-shadow:
0 1px 5px -2px rgb(53 53 53 / 30%),
0 0px 4px 0 rgb(0 0 0 / 12%),
box-shadow: 0 1px 5px -2px rgb(53 53 53 / 30%), 0 0px 4px 0 rgb(0 0 0 / 12%),
0 0px 0px -5px #8e8e8e;
}
Expand Down

0 comments on commit 4f7a924

Please sign in to comment.