mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-10-15 20:08:23 +00:00
16
src/components/ClipsPage.vue
Normal file
16
src/components/ClipsPage.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<ErrorHandler v-if="response && response.error" :message="response.message" :error="response.error" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
activated() {
|
||||
this.fetchJson(this.apiUrl() + "/clips/" + this.$route.params.clipId).then(response => {
|
||||
this.response = response;
|
||||
if (this.response.videoId) {
|
||||
this.$router.push(`/watch?v=${this.response.videoId}`);
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user