diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-25 22:34:22 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-25 22:34:22 +0200 |
commit | 4bbf220296765a20c3ba03c5351b21618a835424 (patch) | |
tree | da6b685a7496bceb928d397f5a073edf1083af44 /packages/client/src/components/RepositoryCloneDropdown.vue | |
parent | 7d27f9c7f1b57693dfdc0dd289015406b90984ec (diff) |
Reformated the client code a bit
Diffstat (limited to 'packages/client/src/components/RepositoryCloneDropdown.vue')
-rw-r--r-- | packages/client/src/components/RepositoryCloneDropdown.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/client/src/components/RepositoryCloneDropdown.vue b/packages/client/src/components/RepositoryCloneDropdown.vue index 335604f..77b26fe 100644 --- a/packages/client/src/components/RepositoryCloneDropdown.vue +++ b/packages/client/src/components/RepositoryCloneDropdown.vue @@ -107,7 +107,7 @@ export default defineComponent({ }); } - const clickOutsideDropdown = (event: Event) => { + function clickOutsideDropdown(event: Event) { const target = event.target as HTMLElement; if(dropdown_menu && dropdown_menu.contains(target) === false && target !== dropdown_button) { @@ -122,7 +122,8 @@ export default defineComponent({ if(dropdown_menu.classList.contains("show")) { dropdown_menu.classList.remove("show"); document.removeEventListener("click", clickOutsideDropdown); - } else { + } + else { dropdown_menu.classList.add("show"); document.addEventListener("click", clickOutsideDropdown); } @@ -246,4 +247,4 @@ export default defineComponent({ margin-left: 0.5rem; font-weight: 700; } -</style> +</style>
\ No newline at end of file |