File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 359
359
<h3 class =" text-xs-left" >{{ $t('message.settings_load_at_start_title') }}</h3 >
360
360
</v-card-title >
361
361
<div class =" cardContent" >
362
- <v-text-field v-model =" settings.startupProgram" v-bind:label =" $t('message.settings_load_at_start_title')"
363
- @input =" v$.settings.startupProgram.$touch"
364
- />
362
+ <v-select
363
+ :disabled =" settings.wifiMode!='client'"
364
+ v-model =" settings.startupProgram"
365
+ @change =" v$.settings.startupProgram.$touch"
366
+ :items =" programList"
367
+ item-title =" name"
368
+ v-bind:label =" $t('message.settings_load_at_start_title')"
369
+ single-line
370
+ >
371
+ </v-select >
365
372
</div >
366
373
</v-card >
367
374
</v-col >
@@ -784,6 +791,11 @@ export default {
784
791
this .$wifi_connect .networks ().then ((result ) => {
785
792
this .networks = result .data .ssids ;
786
793
});
794
+ this .$coderbot .listPrograms ()
795
+ .then ((response ) => {
796
+ this .programList = response .data ;
797
+ console .log (this .programList );
798
+ });
787
799
},
788
800
beforeRouteLeave (to , from , next ) {
789
801
if (this .v$ .$anyDirty ) {
@@ -1133,6 +1145,7 @@ export default {
1133
1145
wifi_status: null ,
1134
1146
wifi_pwd_show: false ,
1135
1147
wifi_overlay: false ,
1148
+ programList: [],
1136
1149
};
1137
1150
},
1138
1151
validations () {
You can’t perform that action at this time.
0 commit comments