mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-08-09 20:24:09 +00:00
@@ -55,6 +55,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.fetchPlaylists();
|
this.fetchPlaylists();
|
||||||
|
this.selectedPlaylist = this.getPreferenceString("selectedPlaylist" + this.hashCode(this.apiUrl()));
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick(playlistId) {
|
handleClick(playlistId) {
|
||||||
@@ -76,6 +77,7 @@ export default {
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
}).then(json => {
|
}).then(json => {
|
||||||
|
this.setPreference("selectedPlaylist" + this.hashCode(this.apiUrl()), playlistId);
|
||||||
this.$emit("close");
|
this.$emit("close");
|
||||||
if (json.error) alert(json.error);
|
if (json.error) alert(json.error);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user