Skip to content

Commit

Permalink
add a link for quick token retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
nojhamster committed Jun 7, 2019
1 parent 3582bd5 commit 7648111
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions client/components/EzmesureUploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
:append-icon="showToken ? 'mdi-eye' : 'mdi-eye-off'"
@click:append="showToken = !showToken"
/>

<div
class="caption text-xs-right"
v-html="$t('ui.ezmesure.findYourToken', { url: tokenUrl })"
/>
</v-card-text>
</v-fade-transition>

Expand Down Expand Up @@ -155,6 +160,9 @@ export default {
},
computed: {
tokenUrl () {
return `https://${this.preprod ? 'ezmesure-preprod' : 'ezmesure'}.couperin.org/myspace#tab-token`;
},
errors () {
if (this.result && Array.isArray(this.result.errors)) {
return this.result.errors;
Expand Down
3 changes: 2 additions & 1 deletion client/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
"ezmesure": {
"loadIntoEzmesure": "Load into ezMESURE",
"toPreprod": "Send to preproduction instance",
"indice": "Target index",
"indice": "Depository index",
"token": "Authentication token",
"load": "Load",
"fileLoaded": "Load completed",
"errorsFound": "Errors have been encountered",
"findYourToken": "Retrieve your authentication token in your <a href=\"{url}\" target=\"_blank\">ezMESURE space</a>.",
"metrics": {
"inserted": "Insérés",
"updated": "Mis à jour",
Expand Down
3 changes: 2 additions & 1 deletion client/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
"ezmesure": {
"loadIntoEzmesure": "Charger dans ezMESURE",
"toPreprod": "Envoyer sur l'instance de préproduction",
"indice": "Indice cible",
"indice": "Index de dépôt",
"token": "Token d'authentification",
"load": "Charger",
"fileLoaded": "Chargement terminé",
"errorsFound": "Des erreurs ont été rencontrées",
"findYourToken": "Retrouvez votre token d'authentification dans votre <a href=\"{url}\" target=\"_blank\">espace ezMESURE</a>.",
"metrics": {
"inserted": "Insérés",
"updated": "Mis à jour",
Expand Down

0 comments on commit 7648111

Please sign in to comment.