mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Fix peer selector toggle
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -13,9 +13,10 @@
|
||||
export let source: proj.Source;
|
||||
export let config: Config;
|
||||
|
||||
const browse: any = { content, peer, path: "/" };
|
||||
const browse: proj.BrowseTo = { content, peer, path: "/" };
|
||||
const head = source.branches[source.project.defaultBranch];
|
||||
|
||||
// route is passed when the URL has more params after e.g. /tree or /history
|
||||
$: if (route) {
|
||||
const { path, revision } = proj.parseRoute(route, source.branches);
|
||||
|
||||
@@ -27,7 +28,7 @@
|
||||
browse.revision = head;
|
||||
}
|
||||
|
||||
$: proj.browse(browse);
|
||||
$: proj.browse({ ...browse, peer });
|
||||
$: browser = $browserStore;
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user