Skip to content

Commit 246c66f

Browse files
committed
adopt API change
1 parent a64cd4c commit 246c66f

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

src/components/CodeExec/CodeExec.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
@keydown.stop.prevent="keyboardEvent = $event"
88
class="code-exec grey lighten-5"
99
>
10-
<template v-if="traceState">
11-
<system-bar :state="traceState">></system-bar>
10+
<template v-if="prompting">
11+
<system-bar :state="prompting">></system-bar>
1212
<v-container fluid style="height: 100%">
1313
<!-- <v-container fluid fill-height> too tall somehow -->
1414
<v-row class="fill-height flex-column flex-nowrap justify-start">
1515
<v-col class="flex-grow-0 pa-0">
1616
<cmd-col
1717
:traceId="traceId"
18-
:disabled="!traceState.prompting"
18+
:disabled="!prompting.prompting"
1919
:keyboard-event="keyboardEvent"
2020
></cmd-col>
2121
</v-col>
2222
<v-divider></v-divider>
2323
<v-col class="overflow-hidden pa-0">
24-
<code-col :state="traceState"></code-col>
24+
<code-col :state="prompting"></code-col>
2525
</v-col>
2626
</v-row>
2727
</v-container>
@@ -30,7 +30,7 @@
3030
</template>
3131

3232
<script>
33-
import SUBSCRIBE_TRACE_STATE from "@/graphql/subscriptions/TraceState.gql";
33+
import SUBSCRIBE_PROMPTING from "@/graphql/subscriptions/Prompting.gql";
3434
3535
import SystemBar from "./SystemBar.vue";
3636
import CmdCol from "./CmdCol.vue";
@@ -46,19 +46,19 @@ export default {
4646
props: { traceId: Number },
4747
data() {
4848
return {
49-
traceState: null,
49+
prompting: null,
5050
keyboardEvent: null,
5151
};
5252
},
5353
apollo: {
5454
$subscribe: {
55-
traceState: {
56-
query: SUBSCRIBE_TRACE_STATE,
55+
prompting: {
56+
query: SUBSCRIBE_PROMPTING,
5757
variables() {
5858
return { traceId: this.traceId };
5959
},
6060
result({ data }) {
61-
this.traceState = data.traceState;
61+
this.prompting = data.prompting;
6262
},
6363
},
6464
},
@@ -67,7 +67,7 @@ export default {
6767
keyboardEvent(val) {
6868
// console.log(val);
6969
},
70-
traceState() {
70+
prompting() {
7171
// console.log(document.activeElement);
7272
},
7373
},
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
subscription Prompting($traceId: Int!) {
2+
prompting(traceId: $traceId) {
3+
prompting
4+
fileName
5+
lineNo
6+
traceEvent
7+
}
8+
}

src/graphql/subscriptions/TraceState.gql

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)