Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/components/onboarding/AddModuleView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import SharedComponents from "@/components/shared";
import { LegacyStation, ScanStationModulesAction } from "~/store";
import ConnectionStatusHeader from "~/components/ConnectionStatusHeader.vue";
import { routes } from "@/routes";
import { Dialogs } from "@nativescript/core";
import { _L } from "@/lib";

export default Vue.extend({
props: {
Expand Down Expand Up @@ -77,7 +79,10 @@ export default Vue.extend({
this.stopAnimation();
},
async goNext(ev: Event): Promise<void> {
await this.$store.dispatch(new ScanStationModulesAction(this.currentStation.deviceId));
await this.$store.dispatch(new ScanStationModulesAction(this.currentStation.deviceId))
.catch(e => {
return Dialogs.alert(_L("moduleAddError"));
})

await Promise.all([
this.$deprecatedNavigateTo(routes.onboarding.recalibrate, {
Expand Down
3 changes: 2 additions & 1 deletion app/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1088,5 +1088,6 @@
},
"registerTncLabel": "By creating an account you agree to our",
"registerTncLabelLink": "Terms of Use.",
"mustBeConnected": "You must be connected to the internet!"
"mustBeConnected": "You must be connected to the internet!",
"moduleAddError": "There is an error adding this module, please check your station and module configuration."
}
3 changes: 2 additions & 1 deletion app/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1011,5 +1011,6 @@
},
"registerTncLabel": "Al crear una cuenta, aceptas nuestra",
"registerTncLabelLink": "Términos de uso.",
"mustBeConnected": "¡Debes estar conectado a internet!"
"mustBeConnected": "¡Debes estar conectado a internet!",
"moduleAddError": "There is an error adding this module, please check your station and module configuration."
}
3 changes: 3 additions & 0 deletions app/store/modules/nearby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ const actions = (services: ServiceRef) => {
.then((statusReply) => {
commit(MutationTypes.STATION_ACTIVITY, info);
return dispatch(new StationRepliedAction(statusReply, info.url), { root: true });
},
(error) => {
return Promise.reject(error);
});
},
[ActionTypes.SCAN_STATION_NETWORKS]: ({ commit, dispatch, state }: ActionParameters, payload: { deviceId: string }) => {
Expand Down