diff --git a/src/components/connections.js b/src/components/connections.js
index 4cc61958..05ac98e3 100644
--- a/src/components/connections.js
+++ b/src/components/connections.js
@@ -12,6 +12,11 @@ export async function build_html(scope, opts = {}) {
+
@@ -30,7 +35,7 @@ export async function build_html(scope, opts = {}) {
export async function render(scope, opts = {}) {
let html = await build_html.call(this, scope, opts);
const frag = this.create_doc_fragment(html);
- const results = scope.find_connections(opts);
+ const results = scope.find_connections({ ...opts, exclude_source_connections: scope.env.smart_blocks.settings.embed_blocks });
const sc_list = frag.querySelector('.sc-list');
const results_frag = await render_results.call(this, scope, { ...opts, results });
@@ -90,5 +95,11 @@ export async function post_process(scope, frag, opts = {}) {
opts.open_search_view();
});
+ // help documentation
+ const help_button = frag.querySelector(".sc-help");
+ help_button.addEventListener("click", () => {
+ window.open("https://docs.smartconnections.app/connections-pane", "_blank");
+ });
+
return frag;
}
\ No newline at end of file