mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Toggle peer and branch dropdown
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -33,10 +33,12 @@
|
||||
};
|
||||
|
||||
const updatePeer = (newPeer: string) => {
|
||||
dropdownState.peer = false;
|
||||
dispatch("routeParamsChange", { content, revision, peer: newPeer, path });
|
||||
};
|
||||
|
||||
const updateRevision = (newRevision: string) => {
|
||||
dropdownState.branch = false;
|
||||
dispatch("routeParamsChange", { content, revision: newRevision, peer, path });
|
||||
};
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
// Bind content to commit history to trigger updates in parent components.
|
||||
$: [revision_,] = splitPrefixFromPath(locator, branches, project.head);
|
||||
$: content = content ?? ProjectContent.History;
|
||||
$: content = ProjectContent.History;
|
||||
$: revision = revision_;
|
||||
|
||||
const navigateHistory = (revision: string, content?: ProjectContent) => {
|
||||
|
||||
Reference in New Issue
Block a user