Skip to content

Commit

Permalink
fix: alerts translations & keys (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 6, 2021
1 parent 4069e2a commit 613bcec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/panels/AlertPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
<span class="pull-left">
<HubImg
:src="archwing"
:name="this.$t('alerts.archwing')"
:name="$t('alerts.archwing')"
class="li-mission-decorator"
v-if="alert.mission.archwingRequired"
/>
<HubImg
:src="nightmare"
:name="this.$t('alerts.nightmare')"
:name="$t('alerts.nightmare')"
class="li-mission-decorator"
v-if="alert.mission.nightmare"
/>
Expand All @@ -31,6 +31,7 @@
variant="info"
:style="styleObject"
v-for="item in alert.mission.reward.items"
v-if="alert.mission.reward.items.length"
:key="item"
class="pull-right"
>
Expand All @@ -40,7 +41,7 @@
variant="info"
:style="styleObject"
v-for="item in alert.mission.reward.countedItems"
:key="item"
:key="item.key"
class="pull-right"
>
{{ item.count }} {{ item.type }}
Expand Down
4 changes: 3 additions & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ const actions = {
},
async updateRivens({ commit, getters }) {
const res = await fetch(`https://n9e5v4d8.ssl.hwcdn.net/repos/weeklyRivens${getters.platform.toUpperCase()}.json`);
const rivens = JSON.parse((await res.text()).replace(/NaN/g, 0).replace(/WARNING:.*\n/, ''));
const raw = await res.text();
if (!(raw && raw.length)) return;
const rivens = JSON.parse(raw.replace(/NaN/g, 0).replace(/WARNING:.*\n/, ''));
commit('commitRivens', [getters.platform, rivens]);
},
async updateSynthData({ commit }) {
Expand Down

1 comment on commit 613bcec

@vercel
Copy link

@vercel vercel bot commented on 613bcec Nov 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.