mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-30 05:21:08 +00:00
update home feed guided tour
This commit is contained in:
parent
2030dc834f
commit
83e7302bc1
1 changed files with 26 additions and 5 deletions
|
@ -7,12 +7,10 @@
|
|||
fetch('guided-tour/False', {
|
||||
headers: {
|
||||
'X-CSRFToken': csrftoken,
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
method: 'POST',
|
||||
redirect: 'follow',
|
||||
mode: 'same-origin',
|
||||
body: 'tour=False'
|
||||
})
|
||||
.then( resp => {console.log(resp.statusText) })
|
||||
}
|
||||
|
@ -30,6 +28,7 @@
|
|||
buttons: [
|
||||
{
|
||||
action() {
|
||||
disableTour();
|
||||
return this.next();
|
||||
},
|
||||
secondary: true,
|
||||
|
@ -55,8 +54,7 @@
|
|||
buttons: [
|
||||
{
|
||||
action() {
|
||||
this.complete()
|
||||
return disableTour();
|
||||
return this.complete()
|
||||
},
|
||||
text: "{% trans 'Ok' %}",
|
||||
classes: "is-success",
|
||||
|
@ -118,7 +116,30 @@
|
|||
],
|
||||
},
|
||||
{
|
||||
text: "{% trans 'The latest books to be added to your reading shelves will be shown here.' %}",
|
||||
text: "{% trans 'Use these links to discover the latest news from your feed, lists of books by topic, and the latest happenings on this Bookwyrm server!' %}",
|
||||
title: "{% trans 'Navigation Bar' %}",
|
||||
attachTo: {
|
||||
element: ".navbar-start",
|
||||
on: "bottom",
|
||||
},
|
||||
buttons: [
|
||||
{
|
||||
action() {
|
||||
return this.back();
|
||||
},
|
||||
secondary: true,
|
||||
text: "{% trans 'Back' %}",
|
||||
},
|
||||
{
|
||||
action() {
|
||||
return this.next();
|
||||
},
|
||||
text: "{% trans 'Next' %}",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
text: "{% trans 'Books on your reading status shelves will be shown here.' %}",
|
||||
title: "{% trans 'Your Books' %}",
|
||||
attachTo: {
|
||||
element: "#suggested_books_block",
|
||||
|
|
Loading…
Reference in a new issue