Toggle peer and branch dropdown

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2022-02-04 21:54:59 +01:00
parent aad01f74b4
commit 9a91e53619
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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 });
};
+1 -1
View File
@@ -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) => {