Skip to content

Commit

Permalink
Enable opening the release nodes from all views without navigating to…
Browse files Browse the repository at this point in the history
… root
  • Loading branch information
sisou committed Mar 11, 2022
1 parent 85f9666 commit 49c080b
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 19 deletions.
4 changes: 3 additions & 1 deletion src/components/UpdateNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
@close="isShown = false"
>
{{ $t('An update to the Wallet is available.') }}
<router-link to="release-notes" class="nq-link">{{ $t('Release Notes') }}</router-link>
<router-link :to="{name: `${$route.name}-release-notes`}" class="nq-link">
{{ $t('Release Notes') }}
</router-link>
<div class="flex-grow"></div>
<CircleSpinner v-if="applyingWalletUpdate"/>
<button v-else
Expand Down
2 changes: 1 addition & 1 deletion src/components/layouts/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
<div class="copyright">
&copy; 2017-{{ copyrightYear }} Nimiq Foundation
<strong>&middot;</strong>
<router-link to="release-notes">{{ $t('Release Notes') }}</router-link>
<router-link :to="{name: 'settings-release-notes'}">{{ $t('Release Notes') }}</router-link>
<strong>&middot;</strong>
<router-link to="disclaimer">{{ $t('Disclaimer') }}</router-link>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ msgstr ""
"\"Sofortüberweisung\" oder \"Echtzeitüberweisung\"."

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr "Versionshinweise"

Expand Down Expand Up @@ -2101,7 +2101,7 @@ msgid "Update Available"
msgstr "Update verfügbar"

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr "Jetzt aktualisieren"

Expand Down
4 changes: 2 additions & 2 deletions src/i18n/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ msgid "Regular transactions are too slow and will not process. Your bank might u
msgstr ""

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr ""

Expand Down Expand Up @@ -1929,7 +1929,7 @@ msgid "Update Available"
msgstr ""

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr ""

Expand Down
4 changes: 2 additions & 2 deletions src/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ msgstr ""
"utilizar otro nombre, como 'transacciones en tiempo real'"

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr "Notas de Lanzamiento"

Expand Down Expand Up @@ -2096,7 +2096,7 @@ msgid "Update Available"
msgstr "Actualización Disponible"

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr "Actualizar ahora"

Expand Down
4 changes: 2 additions & 2 deletions src/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ msgstr ""
"réel\", par exemple."

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr "Notes de mise à jour"

Expand Down Expand Up @@ -2103,7 +2103,7 @@ msgid "Update Available"
msgstr "Mise à jour disponible"

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr "Mettre à jour"

Expand Down
4 changes: 2 additions & 2 deletions src/i18n/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ msgstr ""
"gebruikt mogelijk een andere naam, bijvoorbeeld ‘realtime transacties’."

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr "Release Notes"

Expand Down Expand Up @@ -2076,7 +2076,7 @@ msgid "Update Available"
msgstr "Update beschikbaar"

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr "Update nu"

Expand Down
4 changes: 2 additions & 2 deletions src/i18n/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ msgstr ""
"использовать другие наименования, например, «перевод в реальном времени»."

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr "Список изменений"

Expand Down Expand Up @@ -2086,7 +2086,7 @@ msgid "Update Available"
msgstr "Доступна новая версия"

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr "Обновить"

Expand Down
4 changes: 2 additions & 2 deletions src/i18n/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ msgstr ""
"використовувати іншу назву, наприклад, \"операції в режимі реального часу\"."

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr ""

Expand Down Expand Up @@ -2058,7 +2058,7 @@ msgid "Update Available"
msgstr "Доступне оновлення"

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr "Оновити зараз"

Expand Down
4 changes: 2 additions & 2 deletions src/i18n/zh.po
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ msgid ""
msgstr "常规交易太慢将无法处理。你的银行可能会以其他方式称呼即时交易,例如“实时交易”"

#: src/components/layouts/Settings.vue:246
#: src/components/UpdateNotification.vue:8
#: src/components/UpdateNotification.vue:9
msgid "Release Notes"
msgstr "发行说明"

Expand Down Expand Up @@ -2018,7 +2018,7 @@ msgid "Update Available"
msgstr "有可用更新"

#: src/components/layouts/Settings.vue:24
#: src/components/UpdateNotification.vue:14
#: src/components/UpdateNotification.vue:16
msgid "Update now"
msgstr "现在更新"

Expand Down
18 changes: 17 additions & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ const routes: RouteConfig[] = [{
name: 'simplex',
// props: { modal: true },
meta: { column: Columns.DYNAMIC },
}, {
path: '/release-notes',
components: {
modal: ReleaseNotesModal,
},
name: 'root-release-notes',
props: { modal: true },
meta: { column: Columns.DYNAMIC },
}],
}, {
path: '/settings',
Expand Down Expand Up @@ -278,7 +286,7 @@ const routes: RouteConfig[] = [{
components: {
modal: ReleaseNotesModal,
},
name: 'release-notes',
name: 'settings-release-notes',
props: { modal: true },
meta: { column: Columns.DYNAMIC },
}],
Expand All @@ -298,6 +306,14 @@ const routes: RouteConfig[] = [{
name: 'network-accounts',
props: { modal: true },
meta: { column: Columns.DYNAMIC },
}, {
path: '/release-notes',
components: {
modal: ReleaseNotesModal,
},
name: 'network-release-notes',
props: { modal: true },
meta: { column: Columns.DYNAMIC },
}],
}];

Expand Down

0 comments on commit 49c080b

Please sign in to comment.