diff --git a/components/centraldashboard/public/assets/i18n/languages.json b/components/centraldashboard/public/assets/i18n/languages.json index b401818e851..c528ae73042 100644 --- a/components/centraldashboard/public/assets/i18n/languages.json +++ b/components/centraldashboard/public/assets/i18n/languages.json @@ -65,7 +65,7 @@ "landingPage.slackLink": "https://statcan-aaw.slack.com", "landingPage.firstTime": "This seems to be the first time you access Kubeflow, we are happy to see you!", "landingPage.autoNamespace": "Your namespace is automatically generated.", - "notebookDefaultCard.connect": "Connect", + "notebookDefaultCard.goto": "Go to Notebooks", "notebookDefaultCard.create": "Create", "notebookDefaultCard.details": "Details", "notebookDefaultCard.name": "Name", @@ -181,7 +181,7 @@ "notebookCard.errRetrievingNotebooks": "Erreur en récupérant les bloc-notes", "notebookCard.errNoNotebooks": "Pas de bloc-notes dans l'espace de noms {namespace}", "notebookCard.txtAccessed": "Accédé ", - "notebookDefaultCard.connect": "Connecter", + "notebookDefaultCard.connect": "Aller au bloc-notes", "notebookDefaultCard.create": "Créer", "notebookDefaultCard.details": "Détails", "notebookDefaultCard.name": "Nom", diff --git a/components/centraldashboard/public/components/notebook-default-card.js b/components/centraldashboard/public/components/notebook-default-card.js index c862a08850d..47dd5f4e42f 100644 --- a/components/centraldashboard/public/components/notebook-default-card.js +++ b/components/centraldashboard/public/components/notebook-default-card.js @@ -57,9 +57,9 @@ export class NotebookDefaultCard return this.defaultNotebook.notebook.status.phase == 'ready'; } - _connectNotebook() { - // eslint-disable-next-line max-len - window.open(`/notebook/${this.namespace}/${this.defaultNotebook.notebook.name}/`); + // Changing this code for now to open the notebooks page instead + _goToNotebook() { + window.open(`/_/${this.language}/?ns=/${this.namespace}/`); } _detailNotebook() { diff --git a/components/centraldashboard/public/components/notebook-default-card.pug b/components/centraldashboard/public/components/notebook-default-card.pug index 374a5de9160..b6620a1b946 100644 --- a/components/centraldashboard/public/components/notebook-default-card.pug +++ b/components/centraldashboard/public/components/notebook-default-card.pug @@ -18,7 +18,7 @@ paper-card#DefaultNotebookCard(heading="{{localize('notebookDefaultCard.txtDefau p {{localize('notebookDefaultCard.type')}}: {{defaultNotebook.notebook.serverType}} div.button-div paper-button(on-click='_detailNotebook') {{localize('notebookDefaultCard.details')}} - paper-button(on-click='_connectNotebook') {{localize('notebookDefaultCard.connect')}} + paper-button(on-click='_goToNotebook') {{localize('notebookDefaultCard.goto')}} paper-toast#DefaultNotebookError(duration=8000) |{{localize('notebookDefaultCard.errorDefaultNotebook')}} strong [[defaultNotebookError]]