Fixed recieving ingest details

This commit is contained in:
Pünkösd Marcell 2020-12-06 20:01:47 +01:00
parent ae1754ca1f
commit 09dd2572f9
2 changed files with 10 additions and 2 deletions

View File

@ -10,12 +10,12 @@
<md-field> <md-field>
<label>URL</label> <label>URL</label>
<md-input readonly="true" v-model="editorData.url"></md-input> <md-input :readonly="true" v-model="editorData.url"></md-input>
</md-field> </md-field>
<md-field> <md-field>
<label>Stream Key</label> <label>Stream Key</label>
<md-input readonly="true" type="password" v-model="editorData.streamkey"></md-input> <md-input :readonly="true" type="password" v-model="editorData.streamkey"></md-input>
</md-field> </md-field>

View File

@ -217,6 +217,14 @@ export default {
original_node.apiId = resp.data.id; original_node.apiId = resp.data.id;
} }
if (resp.data.resource_type === 1) {
new_node.data.url = resp.data.url;
original_node.data.url = resp.data.url;
new_node.data.streamkey = resp.data.stream_key;
original_node.data.streamkey = resp.data.stream_key;
}
return resolve(); return resolve();
}).catch(reject); }).catch(reject);