|
@@ -216,11 +216,13 @@
|
|
|
|
|
|
// start: main flow
|
|
|
enterClientRoomAsPro: function() {
|
|
|
- $.post('/api/meeting/enterClientRoomAsPro', {clientUid: '{{ $client->uid }}'}, (_data) => {
|
|
|
- // TODO: check success
|
|
|
- console.log(_data);
|
|
|
- this.getMeetingInfo(true);
|
|
|
- });
|
|
|
+ @if($client)
|
|
|
+ $.post('/api/meeting/enterClientRoomAsPro', {clientUid: '{{ $client->uid }}'}, (_data) => {
|
|
|
+ // TODO: check success
|
|
|
+ console.log(_data);
|
|
|
+ this.getMeetingInfo(true);
|
|
|
+ });
|
|
|
+ @endif
|
|
|
},
|
|
|
getMeetingInfo: function(_firstRun = false) {
|
|
|
$.post('/api/meeting/getMyMeeting', (_data) => {
|