File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
packages/core/src/lambda/vue/remoteInvoke Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 6767 value =" savedEvents"
6868 v-model =" payload"
6969 name =" payload_request"
70+ @change =" $emit('loadRemoteTestEvents')"
7071 />
7172 <label class =" label-selector" for =" savedEvents" > Remote saved events</label >
7273 </div >
Original file line number Diff line number Diff line change @@ -132,6 +132,21 @@ export default defineComponent({
132132 }
133133 )
134134 } ,
135+
136+ async loadRemoteTestEvents ( ) {
137+ const shouldLoadEvents =
138+ this . payload === 'savedEvents' &&
139+ this . initialData . FunctionArn &&
140+ this . initialData . FunctionRegion &&
141+ ! this . initialData . TestEvents
142+
143+ if ( shouldLoadEvents ) {
144+ this . initialData . TestEvents = await client . listRemoteTestEvents (
145+ this . initialData . FunctionArn ,
146+ this . initialData . FunctionRegion
147+ )
148+ }
149+ } ,
135150 } ,
136151 mixins : [ saveData ] ,
137152} )
You can’t perform that action at this time.
0 commit comments