fix attribute sorting, closes #225

This commit is contained in:
azivner 2018-11-14 17:54:28 +01:00
parent cfce744338
commit b8feb4cce3
2 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,7 @@ async function show() {
}
async function loadNotesAndRelations() {
const noteIds = mapData.notes.map(note => note.noteId);console.log(noteIds);
const noteIds = mapData.notes.map(note => note.noteId);
const data = await server.post("notes/relation-map", {noteIds});
relations = [];

View File

@ -25,6 +25,8 @@
<tbody data-bind="foreach: ownedAttributes">
<tr data-bind="if: !isDeleted">
<td>
<input type="hidden" name="position" data-bind="value: position"/>
<select class="form-control attribute-type-select" style="width: auto;"
data-bind="options: $parent.availableTypes, optionsText: 'text', optionsValue: 'value', value: type, event: { change: $parent.typeChanged }"></select>
</td>