Skip to content

Commit 55dd840

Browse files
committed
Enable opening the release nodes from all views without navigating to root
1 parent 85f9666 commit 55dd840

File tree

10 files changed

+35
-17
lines changed

10 files changed

+35
-17
lines changed

src/components/UpdateNotification.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
@close="isShown = false"
66
>
77
{{ $t('An update to the Wallet is available.') }}
8-
<router-link to="release-notes" class="nq-link">{{ $t('Release Notes') }}</router-link>
8+
<router-link :to="{name: `${$route.name}-release-notes`}" class="nq-link">
9+
{{ $t('Release Notes') }}
10+
</router-link>
911
<div class="flex-grow"></div>
1012
<CircleSpinner v-if="applyingWalletUpdate"/>
1113
<button v-else

src/components/layouts/Settings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
<div class="copyright">
244244
&copy; 2017-{{ copyrightYear }} Nimiq Foundation
245245
<strong>&middot;</strong>
246-
<router-link to="release-notes">{{ $t('Release Notes') }}</router-link>
246+
<router-link :to="{name: 'settings-release-notes'}">{{ $t('Release Notes') }}</router-link>
247247
<strong>&middot;</strong>
248248
<router-link to="disclaimer">{{ $t('Disclaimer') }}</router-link>
249249
</div>

src/i18n/de.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ msgstr ""
15251525
"\"Sofortüberweisung\" oder \"Echtzeitüberweisung\"."
15261526

15271527
#: src/components/layouts/Settings.vue:246
1528-
#: src/components/UpdateNotification.vue:8
1528+
#: src/components/UpdateNotification.vue:9
15291529
msgid "Release Notes"
15301530
msgstr "Versionshinweise"
15311531

@@ -2101,7 +2101,7 @@ msgid "Update Available"
21012101
msgstr "Update verfügbar"
21022102

21032103
#: src/components/layouts/Settings.vue:24
2104-
#: src/components/UpdateNotification.vue:14
2104+
#: src/components/UpdateNotification.vue:16
21052105
msgid "Update now"
21062106
msgstr "Jetzt aktualisieren"
21072107

src/i18n/es.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ msgstr ""
15221522
"utilizar otro nombre, como 'transacciones en tiempo real'"
15231523

15241524
#: src/components/layouts/Settings.vue:246
1525-
#: src/components/UpdateNotification.vue:8
1525+
#: src/components/UpdateNotification.vue:9
15261526
msgid "Release Notes"
15271527
msgstr "Notas de Lanzamiento"
15281528

@@ -2096,7 +2096,7 @@ msgid "Update Available"
20962096
msgstr "Actualización Disponible"
20972097

20982098
#: src/components/layouts/Settings.vue:24
2099-
#: src/components/UpdateNotification.vue:14
2099+
#: src/components/UpdateNotification.vue:16
21002100
msgid "Update now"
21012101
msgstr "Actualizar ahora"
21022102

src/i18n/fr.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ msgstr ""
15271527
"réel\", par exemple."
15281528

15291529
#: src/components/layouts/Settings.vue:246
1530-
#: src/components/UpdateNotification.vue:8
1530+
#: src/components/UpdateNotification.vue:9
15311531
msgid "Release Notes"
15321532
msgstr "Notes de mise à jour"
15331533

@@ -2103,7 +2103,7 @@ msgid "Update Available"
21032103
msgstr "Mise à jour disponible"
21042104

21052105
#: src/components/layouts/Settings.vue:24
2106-
#: src/components/UpdateNotification.vue:14
2106+
#: src/components/UpdateNotification.vue:16
21072107
msgid "Update now"
21082108
msgstr "Mettre à jour"
21092109

src/i18n/nl.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ msgstr ""
15091509
"gebruikt mogelijk een andere naam, bijvoorbeeld ‘realtime transacties’."
15101510

15111511
#: src/components/layouts/Settings.vue:246
1512-
#: src/components/UpdateNotification.vue:8
1512+
#: src/components/UpdateNotification.vue:9
15131513
msgid "Release Notes"
15141514
msgstr "Release Notes"
15151515

@@ -2076,7 +2076,7 @@ msgid "Update Available"
20762076
msgstr "Update beschikbaar"
20772077

20782078
#: src/components/layouts/Settings.vue:24
2079-
#: src/components/UpdateNotification.vue:14
2079+
#: src/components/UpdateNotification.vue:16
20802080
msgid "Update now"
20812081
msgstr "Update nu"
20822082

src/i18n/ru.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ msgstr ""
15131513
"использовать другие наименования, например, «перевод в реальном времени»."
15141514

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

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

20882088
#: src/components/layouts/Settings.vue:24
2089-
#: src/components/UpdateNotification.vue:14
2089+
#: src/components/UpdateNotification.vue:16
20902090
msgid "Update now"
20912091
msgstr "Обновить"
20922092

src/i18n/uk.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ msgstr ""
14951495
"використовувати іншу назву, наприклад, \"операції в режимі реального часу\"."
14961496

14971497
#: src/components/layouts/Settings.vue:246
1498-
#: src/components/UpdateNotification.vue:8
1498+
#: src/components/UpdateNotification.vue:9
14991499
msgid "Release Notes"
15001500
msgstr ""
15011501

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

20602060
#: src/components/layouts/Settings.vue:24
2061-
#: src/components/UpdateNotification.vue:14
2061+
#: src/components/UpdateNotification.vue:16
20622062
msgid "Update now"
20632063
msgstr "Оновити зараз"
20642064

src/i18n/zh.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ msgid ""
14621462
msgstr "常规交易太慢将无法处理。你的银行可能会以其他方式称呼即时交易,例如“实时交易”"
14631463

14641464
#: src/components/layouts/Settings.vue:246
1465-
#: src/components/UpdateNotification.vue:8
1465+
#: src/components/UpdateNotification.vue:9
14661466
msgid "Release Notes"
14671467
msgstr "发行说明"
14681468

@@ -2018,7 +2018,7 @@ msgid "Update Available"
20182018
msgstr "有可用更新"
20192019

20202020
#: src/components/layouts/Settings.vue:24
2021-
#: src/components/UpdateNotification.vue:14
2021+
#: src/components/UpdateNotification.vue:16
20222022
msgid "Update now"
20232023
msgstr "现在更新"
20242024

src/router.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,14 @@ const routes: RouteConfig[] = [{
250250
name: 'simplex',
251251
// props: { modal: true },
252252
meta: { column: Columns.DYNAMIC },
253+
}, {
254+
path: '/release-notes',
255+
components: {
256+
modal: ReleaseNotesModal,
257+
},
258+
name: 'root-release-notes',
259+
props: { modal: true },
260+
meta: { column: Columns.DYNAMIC },
253261
}],
254262
}, {
255263
path: '/settings',
@@ -278,7 +286,7 @@ const routes: RouteConfig[] = [{
278286
components: {
279287
modal: ReleaseNotesModal,
280288
},
281-
name: 'release-notes',
289+
name: 'settings-release-notes',
282290
props: { modal: true },
283291
meta: { column: Columns.DYNAMIC },
284292
}],
@@ -298,6 +306,14 @@ const routes: RouteConfig[] = [{
298306
name: 'network-accounts',
299307
props: { modal: true },
300308
meta: { column: Columns.DYNAMIC },
309+
}, {
310+
path: '/release-notes',
311+
components: {
312+
modal: ReleaseNotesModal,
313+
},
314+
name: 'network-release-notes',
315+
props: { modal: true },
316+
meta: { column: Columns.DYNAMIC },
301317
}],
302318
}];
303319

0 commit comments

Comments
 (0)