Skip to content

Commit

Permalink
fix(controls): add init backwardTarget to .create in link control
Browse files Browse the repository at this point in the history
  • Loading branch information
miniJoker committed Dec 6, 2024
1 parent 978ce47 commit 79832a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source-web/js/browser/controls/veda_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ $.fn.veda_link = function ( options ) {
const createValue = function () {
const newVal = new IndividualModel();
newVal['rdf:type'] = rangeRestriction ? [rangeRestriction] : [(new IndividualModel(rel_uri))['rdfs:range'][0]];
newVal['v-s:backwardTarget'] = [individual];
newVal['v-s:backwardProperty'] = [rel_uri];
newVal['v-s:parent'] = [individual];
newVal['v-s:canRead'] = [true];
newVal['v-s:canUpdate'] = [true];
newVal['v-s:canDelete'] = [true];
return newVal;
};

Expand Down

0 comments on commit 79832a7

Please sign in to comment.