diff --git a/src/App.vue b/src/App.vue
index 38704d5..4437b0a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,9 +1,3 @@
-
-
diff --git a/src/components/Main.vue b/src/components/Main.vue
index 443f026..1c65b46 100644
--- a/src/components/Main.vue
+++ b/src/components/Main.vue
@@ -1,6 +1,6 @@
-
+
@@ -60,6 +60,11 @@ export default {
},
watch: {
$route: 'onRoute',
+ 'player.volume'(newVolume, oldVolume) {
+ if (audioPlayer !== null) {
+ audioPlayer.volume(newVolume)
+ }
+ },
},
mounted() {
this.loadStations()
@@ -164,7 +169,6 @@ export default {
'User-Agent': 'Nextcloud Radio/1.0.0', // FIXME global version, doesnt seem to work
})
.done(function(data) {
- vm.pageLoading = false
for (let i = 0; i < data.length; i++) {
const obj = data[i]
let blurHash = vm.blurHashes[obj.stationuuid]
@@ -173,9 +177,9 @@ export default {
}
data[i].blurHash = blurHash
}
- console.log(data)
vm.tableData = vm.tableData.concat(data)
vm.offset += 20
+ vm.pageLoading = false
})
},
/**
@@ -188,11 +192,6 @@ export default {
}
}
},
- changeVolume(volume) {
- if (audioPlayer !== null) {
- audioPlayer.volume(volume)
- }
- },
},
}
diff --git a/src/components/Navigation.vue b/src/components/Navigation.vue
index da60ffa..ec36e68 100644
--- a/src/components/Navigation.vue
+++ b/src/components/Navigation.vue
@@ -20,8 +20,7 @@
+ :pinned="true" />
@@ -38,11 +37,6 @@ export default {
AppNavigationItem,
Player,
},
- methods: {
- changeVolume(volume) {
- this.$emit('changeVolume', volume)
- },
- },
}
diff --git a/src/components/Player.vue b/src/components/Player.vue
index 989ec1b..b8789e4 100644
--- a/src/components/Player.vue
+++ b/src/components/Player.vue
@@ -16,7 +16,7 @@
max="1"
step=".05"
:value="player.volume"
- @input="changeVolume">
+ @input="changeVolume($event)">
{{ player.volume }}
@@ -24,9 +24,6 @@