mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-02 14:26:41 +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', {
|
fetch('guided-tour/False', {
|
||||||
headers: {
|
headers: {
|
||||||
'X-CSRFToken': csrftoken,
|
'X-CSRFToken': csrftoken,
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
},
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
redirect: 'follow',
|
redirect: 'follow',
|
||||||
mode: 'same-origin',
|
mode: 'same-origin',
|
||||||
body: 'tour=False'
|
|
||||||
})
|
})
|
||||||
.then( resp => {console.log(resp.statusText) })
|
.then( resp => {console.log(resp.statusText) })
|
||||||
}
|
}
|
||||||
|
@ -30,6 +28,7 @@
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
action() {
|
action() {
|
||||||
|
disableTour();
|
||||||
return this.next();
|
return this.next();
|
||||||
},
|
},
|
||||||
secondary: true,
|
secondary: true,
|
||||||
|
@ -55,8 +54,7 @@
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
action() {
|
action() {
|
||||||
this.complete()
|
return this.complete()
|
||||||
return disableTour();
|
|
||||||
},
|
},
|
||||||
text: "{% trans 'Ok' %}",
|
text: "{% trans 'Ok' %}",
|
||||||
classes: "is-success",
|
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' %}",
|
title: "{% trans 'Your Books' %}",
|
||||||
attachTo: {
|
attachTo: {
|
||||||
element: "#suggested_books_block",
|
element: "#suggested_books_block",
|
||||||
|
|
Loading…
Reference in a new issue