From 04324c00b42b278aad882caa517186d9f2a49317 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 3 Jul 2022 16:12:17 +1000 Subject: [PATCH] back button on all tour modals --- bookwyrm/templates/guided_tour/book.html | 7 +++++++ bookwyrm/templates/guided_tour/user_groups.html | 7 +++++++ bookwyrm/templates/guided_tour/user_profile.html | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/bookwyrm/templates/guided_tour/book.html b/bookwyrm/templates/guided_tour/book.html index d1c698ea3..052019aed 100644 --- a/bookwyrm/templates/guided_tour/book.html +++ b/bookwyrm/templates/guided_tour/book.html @@ -139,6 +139,13 @@ on: "left", }, buttons: [ + { + action() { + return this.back(); + }, + secondary: true, + text: "{% trans 'Back' %}", + }, { action() { return this.complete(); diff --git a/bookwyrm/templates/guided_tour/user_groups.html b/bookwyrm/templates/guided_tour/user_groups.html index 68de5530d..105e4e860 100644 --- a/bookwyrm/templates/guided_tour/user_groups.html +++ b/bookwyrm/templates/guided_tour/user_groups.html @@ -107,6 +107,13 @@ {% trans ' button to continue the tour.' %}", title: "{% trans 'Save your group' %}", buttons: [ + { + action() { + return this.back(); + }, + secondary: true, + text: "{% trans 'Back' %}", + }, { action() { return this.complete(); diff --git a/bookwyrm/templates/guided_tour/user_profile.html b/bookwyrm/templates/guided_tour/user_profile.html index e6cf15be1..98bda48e6 100644 --- a/bookwyrm/templates/guided_tour/user_profile.html +++ b/bookwyrm/templates/guided_tour/user_profile.html @@ -127,6 +127,13 @@ tour.addSteps([ on: "right", }, buttons: [ + { + action() { + return this.back(); + }, + secondary: true, + text: "{% trans 'Back' %}", + }, { action() { return this.complete();