Skip to content

Commit 9b77daa

Browse files
committed
#46 defaulted goBackOrNavigateTo() param to 0
1 parent 762dcea commit 9b77daa

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

mobile/src/components/feedbacks/BaseFeedbackStep.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const eventId = new EventId(getRouteParamsValue(route, 'eventId'));
7979
8080
const ionRouter = useIonRouter();
8181
function backButtonClicked() {
82-
goBackOrNavigateTo(ionRouter, `/events/${eventId.value}`, 0)
82+
goBackOrNavigateTo(ionRouter, `/events/${eventId.value}`)
8383
}
8484
</script>
8585

mobile/src/components/user/GlobalUserActionsButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const viewableUserDashboard = import.meta.env.VITE_VIEWABLE_USER_DASHBOARD === "
1414
const ionRouter = useIonRouter();
1515
function openUserDashboard() {
1616
if(viewableUserDashboard) {
17-
goBackOrNavigateTo(ionRouter, `/user/dashboard`, 0);
17+
goBackOrNavigateTo(ionRouter, `/user/dashboard`);
1818
}
1919
}
2020
</script>

mobile/src/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default router
8080
* (after some vue-router's back() magic: if you want further explanation on the why, look at useTabbedPageNav hook)
8181
* - If this is not possible, then a navigation on fallback url will replace actual history state
8282
*/
83-
export async function goBackOrNavigateTo(ionRouter: UseIonRouterResult, fallbackUrl: string, routerGoBacks: number, routeDirection: RouteDirection = 'back', onEventCaught: (() => Promise<void>)|undefined = undefined) {
83+
export async function goBackOrNavigateTo(ionRouter: UseIonRouterResult, fallbackUrl: string, routerGoBacks: number = 0, routeDirection: RouteDirection = 'back', onEventCaught: (() => Promise<void>)|undefined = undefined) {
8484
if(onEventCaught) {
8585
await onEventCaught();
8686
}

mobile/src/views/event-admin/EventAdminTalkFeedbacks.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ion-header class="stickyHeader">
55
<ion-toolbar>
66
<ion-button class="stickyHeader-close" shape="round" slot="start" size="small" fill="outline"
7-
@click="goBackOrNavigateTo(ionRouter, `/event-selector`, 0)">
7+
@click="goBackOrNavigateTo(ionRouter, `/event-selector`)">
88
<ion-icon src="/assets/icons/line/arrow-left-line.svg"></ion-icon>
99
</ion-button>
1010
<ion-title class="stickyHeader-title" slot="start">Event Talk Feedbacks</ion-title>

mobile/src/views/feedbacks/NewFeedbackPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ async function watchLaterAllFavoritedTalks() {
223223
}
224224
225225
function backToSchedulePage() {
226-
goBackOrNavigateTo(ionRouter, `/events/${eventIdRef.value.value}`, 0)
226+
goBackOrNavigateTo(ionRouter, `/events/${eventIdRef.value.value}`)
227227
}
228228
229229
const dayIdRef = computed(() => labelledTimeslotWithOverlappingsRef.value?.dayId)
@@ -234,7 +234,7 @@ async function submitSkippedFeedback() {
234234
timeslotId: labelledTimeslotWithOverlappingsRef.value!.labelledTimeslot.id.value,
235235
alsoConcernsOverlappingTimeslotIds: labelledTimeslotWithOverlappingsRef.value!.overlappingLabelledTimeslots.map(ts => ts.id.value)
236236
})
237-
goBackOrNavigateTo(ionRouter, `/events/${eventIdRef.value.value}`, 0)
237+
goBackOrNavigateTo(ionRouter, `/events/${eventIdRef.value.value}`)
238238
}
239239
240240
</script>

mobile/src/views/feedbacks/RateTalkPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async function submitFeedback() {
183183
184184
const ionRouter = useIonRouter();
185185
function backToSchedulePage() {
186-
goBackOrNavigateTo(ionRouter, `/events/${eventIdRef.value.value}`, 0)
186+
goBackOrNavigateTo(ionRouter, `/events/${eventIdRef.value.value}`)
187187
}
188188
189189
</script>

mobile/src/views/user/MyGlobalSettingsPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ion-header class="stickyHeader">
55
<ion-toolbar>
66
<ion-button class="stickyHeader-close" shape="round" slot="start" size="small" fill="outline"
7-
@click="goBackOrNavigateTo(ionRouter, `/user/dashboard`, 0)">
7+
@click="goBackOrNavigateTo(ionRouter, `/user/dashboard`)">
88
<ion-icon src="/assets/icons/line/arrow-left-line.svg"></ion-icon>
99
</ion-button>
1010
<ion-title class="stickyHeader-title" slot="start">App settings</ion-title>

mobile/src/views/user/MyPersonalDataPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ion-header class="stickyHeader">
55
<ion-toolbar>
66
<ion-button class="stickyHeader-close" shape="round" slot="start" size="small" fill="outline"
7-
@click="goBackOrNavigateTo(ionRouter, `/user/dashboard`, 0)">
7+
@click="goBackOrNavigateTo(ionRouter, `/user/dashboard`)">
88
<ion-icon src="/assets/icons/line/arrow-left-line.svg"></ion-icon>
99
</ion-button>
1010
<ion-title class="stickyHeader-title" slot="start">My personal data</ion-title>

mobile/src/views/user/TalkFeedbacksPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ion-header class="stickyHeader">
55
<ion-toolbar>
66
<ion-button class="stickyHeader-close" shape="round" slot="start" size="small" fill="outline"
7-
@click="goBackOrNavigateTo(ionRouter, `/user/talks`, 0)">
7+
@click="goBackOrNavigateTo(ionRouter, `/user/talks`)">
88
<ion-icon src="/assets/icons/solid/close.svg"></ion-icon>
99
</ion-button>
1010
<ion-title class="stickyHeader-title" slot="start">{{LL.Talk_Feedbacks()}}</ion-title>

mobile/src/views/user/UserDashboardPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ion-header class="stickyHeader">
55
<ion-toolbar>
66
<ion-button class="stickyHeader-close" shape="round" slot="start" size="small" fill="outline"
7-
@click="goBackOrNavigateTo(ionRouter, `/event-selector`, 0)">
7+
@click="goBackOrNavigateTo(ionRouter, `/event-selector`)">
88
<ion-icon src="/assets/icons/line/arrow-left-line.svg"></ion-icon>
99
</ion-button>
1010
<ion-title class="stickyHeader-title" slot="start">{{ LL.Profile() }}</ion-title>

0 commit comments

Comments
 (0)