Skip to content

Commit

Permalink
upd helper
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Nov 14, 2023
1 parent 8c7544a commit f5d8229
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>

<div class="menu-link" tabindex="0">
<details>
<details :open="!helper">
<summary>
<font-awesome-icon icon="fa-solid fa-circle-question" />
</summary>
Expand All @@ -43,6 +43,7 @@ export default {
data() {
return {
locale: this.localeCurrent,
helper: localStorage.getItem("helper"),
};
},
watch: {
Expand All @@ -58,6 +59,9 @@ export default {
document.body.querySelectorAll("details").forEach((e) => {
if (e !== current) {
e.open = false;
if (!this.helper) {
localStorage.setItem("helper", true);
}
}
});
};
Expand Down
10 changes: 10 additions & 0 deletions src/components/header/MenuPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
<nav id="nav" class="sensors-panel-top-nav">
<div class="sensors-panel-top-nav-content">
<ul class="nav__list">
<li class="nav__item">
<a
href="https://robonomics.academy/en/learn/sensors-connectivity-course/sensor-hardware/"
class="nav__link"
target="_blank"
rel="noreferrer noopener"
>
{{ $t("header.assembly") }}
</a>
</li>
<li class="nav__item">
<a
href="https://robonomics.academy/en/learn/sensors-connectivity-course/sensor-hardware/"
Expand Down

0 comments on commit f5d8229

Please sign in to comment.