Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
eensander committed Nov 29, 2023
2 parents 634f515 + 9f60497 commit 357a956
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/graph/GraphModeler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<span class="text-gray-800 text-sm">Sharable URL to this graph:</span>
<input type="text"
class="w-full min-h-4 text-sm font-mono border border-gray-200 text-gray-800 rounded p-2 mt-1"
@focus="$event.target.select()"
@focus="($event.target as HTMLInputElement).select()"
:value="graph_sharable_url"
/>
</label>
Expand Down Expand Up @@ -151,7 +151,6 @@
});
watch(() => docassemble_out_options, (val => {
// console.log("options updated")
docassemble_cont_update();
}), { deep: true })
Expand Down Expand Up @@ -190,7 +189,7 @@
const antv = (new Transformer()).in_json(import_json as JSONGraphData).out_antv();
graph.value.fromJSON(antv);
graph.value!.fromJSON(antv);
docassemble_cont_update();
toast.success("Successfully imported");
Expand Down Expand Up @@ -266,7 +265,7 @@
if (formatted_validation_errors.value.length == 0) {
const transformer = (new Transformer()).in_antv(graph.value);
const encoded_interview = base64.encode(JSON.stringify(transformer.out_json()))
graph_sharable_url.value = `${window.location.protocol}//${window.location.host}/#${encoded_interview}`
graph_sharable_url.value = `${window.location.href}#${encoded_interview}`
} else {
graph_sharable_url.value = '-';
}
Expand Down

0 comments on commit 357a956

Please sign in to comment.