Add a popularity modal to the page when clicking on the popularity value (finishes #5 )
This commit is contained in:
parent
7ea4f89522
commit
4a61eec9ff
11 changed files with 205 additions and 19 deletions
15
app.js
15
app.js
|
|
@ -8,7 +8,14 @@ let app = new Vue({
|
|||
show: {
|
||||
popularity_popup: false,
|
||||
popularity_hover: false,
|
||||
follower_hover: false
|
||||
follower_hover: false,
|
||||
modal_content: false,
|
||||
modal: {
|
||||
popularity: false,
|
||||
track: false,
|
||||
artist: false,
|
||||
playlist_export: false,
|
||||
}
|
||||
},
|
||||
error: {
|
||||
main: ``,
|
||||
|
|
@ -67,5 +74,11 @@ let app = new Vue({
|
|||
})
|
||||
},
|
||||
get_data: fetch_data,
|
||||
hide_modal: function () {
|
||||
this.show.modal.popularity = false;
|
||||
this.show.modal.track = false;
|
||||
this.show.modal.artist = false;
|
||||
this.show.modal.playlist_export = false;
|
||||
}
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue