forked from tsai/budibase
2 changed files with 11 additions and 1 deletions
@ -0,0 +1,10 @@ |
|||||
|
import { get } from "svelte/store" |
||||
|
import { link } from "svelte-spa-router" |
||||
|
import { builderStore } from "../store" |
||||
|
|
||||
|
export const linkable = (node, href) => { |
||||
|
if (get(builderStore).inBuilder) { |
||||
|
return |
||||
|
} |
||||
|
link(node, href) |
||||
|
} |
||||
Loading…
Reference in new issue