Skip to content

Commit d8fd64b

Browse files
committed
Fix for edit
1 parent 7f3d4a2 commit d8fd64b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ <h2>{{ subject }} - edit</h2>
129129
<div class="form-group">
130130
<label v-bind:for="key">{{ key }}</label>
131131
<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>
132135
<select v-else class="form-control" v-bind:id="key" v-model="record[key]">
133136
<option value=""></option>
134137
<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>
271274
self.options[subject] = response.data.records.map(function (record) {
272275
return {key: record[primaryKey], value: record[displayColumn]};
273276
});
277+
self.$forceUpdate();
274278
}.bind(null, subject, primaryKey, displayColumn)).catch(function (error) {
275279
console.log(error);
276280
});

0 commit comments

Comments
 (0)