diff --git a/public/theme/src/components/ReCast/Endpoints/List.vue b/public/theme/src/components/ReCast/Endpoints/List.vue
deleted file mode 100644
index ac9bc42..0000000
--- a/public/theme/src/components/ReCast/Endpoints/List.vue
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
Add a new Endpoint
-
-
-
-
- Name |
- Service |
- Location |
- Action |
-
-
-
-
- {{ endpoint.name }} |
- {{ endpoint.type }} |
- {{ endpoint.server }} |
-
- Edit
- Delete
- |
-
-
-
-
-
-
-
-
-
-
-
diff --git a/public/theme/src/components/ReCast/Streams/EditStream.vue b/public/theme/src/components/ReCast/Streams/EditStream.vue
index e37fd3d..4be28ff 100644
--- a/public/theme/src/components/ReCast/Streams/EditStream.vue
+++ b/public/theme/src/components/ReCast/Streams/EditStream.vue
@@ -14,6 +14,36 @@
+
+
+
Endpoints
+
+
+
Add a new Endpoint
+
+
+
+
+ Name |
+ Service |
+ Location |
+ Action |
+
+
+
+
+ {{ endpoint.name }} |
+ {{ endpoint.type }} |
+ {{ endpoint.server }} |
+
+ Edit
+ Delete
+ |
+
+
+
+
+
@@ -33,7 +63,8 @@
stream: {
active: false,
name: ''
- }
+ },
+ endpoints: []
}
},
mounted() {
@@ -41,6 +72,9 @@
this.axios.get('/streams/one?id=' + this.$route.params.id).then(response => {
this.stream = response.data;
});
+ this.axios.get('/streams/' + this.$route.params.id + '/endpoints/').then(response => {
+ this.endpoints = response.data;
+ });
}
},
methods: {
@@ -48,6 +82,10 @@
this.axios.post('/streams/update', this.stream).then(() => {
this.$router.push('/ucp/streams/');
})
+ },
+ deleteEndpoint: function (endpoint) {
+ this.endpoints.splice(this.endpoints.indexOf(endpoint), 1);
+ this.axios.post('/streams/deleteEndpoint', {id: endpoint.id});
}
}
}
diff --git a/public/theme/src/components/ReCast/Streams/List.vue b/public/theme/src/components/ReCast/Streams/List.vue
index 2bbe402..21137eb 100644
--- a/public/theme/src/components/ReCast/Streams/List.vue
+++ b/public/theme/src/components/ReCast/Streams/List.vue
@@ -22,7 +22,6 @@
{{ getProviders(stream) }} |
Setup
- Endpoints
Edit
Regenerate Stream Key
Delete
@@ -77,5 +76,7 @@
diff --git a/public/theme/src/routes/routes.js b/public/theme/src/routes/routes.js
index f6909c6..1f78df3 100644
--- a/public/theme/src/routes/routes.js
+++ b/public/theme/src/routes/routes.js
@@ -12,7 +12,6 @@ import Overview from 'src/components/ReCast/Overview.vue'
import ListStreams from 'src/components/ReCast/Streams/List.vue'
import EditStream from 'src/components/ReCast/Streams/EditStream.vue'
import SetupStream from 'src/components/ReCast/Streams/SetupStream.vue'
-import ListEndpoints from 'src/components/ReCast/Endpoints/List.vue'
import EditEndpoint from 'src/components/ReCast/Endpoints/EditEndpoint.vue'
const routes = [
@@ -48,11 +47,6 @@ const routes = [
component: EditStream,
meta: {auth: true},
},
- {
- path: 'streams/:id/endpoints',
- component: ListEndpoints,
- meta: {auth: true},
- },
{
path: 'streams/:id/setup',
component: SetupStream,
|