diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-11-06 20:36:01 -0500 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-11-06 20:36:01 -0500 |
commit | 2fffd4133a79ffbb7728a18d8f2b67e6fa0244e6 (patch) | |
tree | a94ecd0d768083a10bf9ca9d6177921596fd70fc /src/components/registry-element.js | |
parent | 7af9d162ab82c6e6eb38a1e3cd1b06afd884d93a (diff) |
Added search feature and small update to admin controls.
Diffstat (limited to 'src/components/registry-element.js')
-rw-r--r-- | src/components/registry-element.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/components/registry-element.js b/src/components/registry-element.js index cbca5bf..8641e44 100644 --- a/src/components/registry-element.js +++ b/src/components/registry-element.js @@ -59,8 +59,7 @@ class RegistryElement extends LitElement { </style> <paper-card - onmouseover ="${() => this.toggleTabOpen()}" - onmouseout ="${() => this.toggleTabClosed()}"> + onclick = "${() => this.toggleTab()}"> <div class="card-content"> <h3>${props.name.replace("_", " ")}</h3> <div class="info-tab" id="name-list" hidden="${!props.infoTabOpen}"> @@ -112,12 +111,8 @@ class RegistryElement extends LitElement { this.fillNames(); } - toggleTabOpen() { - this.infoTabOpen = true; - } - - toggleTabClosed() { - this.infoTabOpen = false; + toggleTab() { + this.infoTabOpen = !this.infoTabOpen; } fillNames() { |