File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ <h2>{{ subject }} - edit</h2>
129
129
< div class ="form-group ">
130
130
< label v-bind:for ="key "> {{ key }}</ label >
131
131
< input v-if ="references[key] === false " class ="form-control " v-bind:id ="key " v-model ="record[key] " :disabled ="key === primaryKey " />
132
+ < select v-else-if ="!options[references[key]] " class ="form-control " disabled >
133
+ < option value ="" selected > Loading...</ option >
134
+ </ select >
132
135
< select v-else class ="form-control " v-bind:id ="key " v-model ="record[key] ">
133
136
< option value =""> </ option >
134
137
< option v-for ="option in options[references[key]] " v-bind:value ="option.key "> {{ option.value }}</ option >
@@ -271,6 +274,7 @@ <h2>{{ subject }} delete #{{ id }}</h2>
271
274
self . options [ subject ] = response . data . records . map ( function ( record ) {
272
275
return { key : record [ primaryKey ] , value : record [ displayColumn ] } ;
273
276
} ) ;
277
+ self . $forceUpdate ( ) ;
274
278
} . bind ( null , subject , primaryKey , displayColumn ) ) . catch ( function ( error ) {
275
279
console . log ( error ) ;
276
280
} ) ;
You can’t perform that action at this time.
0 commit comments