Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle vector layer relations (#110)
* Clean code * Clean code * 🐛 Fix tool relation editing * clean code * Can pass custom selected stylefor handle relation vector features * Handle movevertex and movefeature relation tool * Fix show vertex for multipolygon feature * Enable disable tools and save * Add index relationTools to avoid to has same id of tool between more than one feature relation * clean code * clean code * Fix add relation and relation tools of new relation feature. Remove startVectorTool and startTableTool and unify it inside startTool method * Need to check only if the previous form is valid * Fix enable/disable relation tools element * scoped css * code format * Delete FormRelations.vue * `<divider />` → `<span class="divider"></span>` * comments * Delete unused isRequired method * remove unusued stuff * Reomve unused showallfieldsindex property and methods related to it * remove unusued * code spacing * code format * Fix resize relations table * refactor `OpenFormStep` * move `SaveAll.vue` into `OpenFormStep` * promisify `startTool` * debug: `Uncaught (in promise)` * move function: `updateExternalKeyValueRelations` into `FormRelation.vue` * promisify add/link relation + remove unusued * wrong variable name * Fix double disabled class * 🐛 _new_relations_ids set as not reactive. Issue on delete relation * clen code- remove empty spaces * convert to ES6 class: `RelationService` * remove private variable: `_editingService` * `save-all-icon` * array `some` → `includes` * refactor `getLayersDependencyFeatures` * 🐛 Fix delete relation feature and add new feature * Clean code - spaces * Remove old deprecated h-resize * Fix relation getType * await promise * Exclude foreignKey attribute. Fix show relations table of unlinked relation features not binding to parent feature * Fix link vector relations * simplify ternary condition * @todo * promisify inner loop: `getLayersDependencyFeatures ` * Fix delete new insert feature relation, set the state of saveAll button * failsafe check * Substitute reduce with find to best performance. Fix issue on instanceof. Wrong right side * Clen code - Move same condition code to unique point * Clen code - readibility * Fix save all relation on table * convert to ES6 class: `TableService` * convert to ES6 class: `EditingService` * Get layer on editing. Get layer of session is wrong because it can be a parent layer * In case of parent feature new and pk field as relation field, get feature id * Fix save relation from parent new feature --------- Co-authored-by: Raruto <[email protected]>
- Loading branch information