filebrowser/frontend/src/components/header/HeaderBar.vue

35 lines
583 B
Vue
Raw Normal View History

2021-02-25 18:37:07 +00:00
<template>
<header>
<slot />
</header>
</template>
<script>
2021-03-21 11:51:58 +00:00
import { logoURL } from "@/utils/constants";
2023-08-31 22:15:44 +00:00
import Action from "@/components/header/Action.vue";
2021-02-25 18:37:07 +00:00
export default {
2021-03-21 11:51:58 +00:00
name: "header-bar",
props: ["showLogo", "showMenu"],
2021-02-25 18:37:07 +00:00
components: {
2021-03-21 11:51:58 +00:00
Action,
2021-02-25 18:37:07 +00:00
},
data: function () {
return {
2021-03-21 11:51:58 +00:00
logoURL,
};
2021-02-25 18:37:07 +00:00
},
methods: {
2023-07-23 04:12:26 +00:00
toggleSidebar() {
if ( this.$store.state.show == "sidebar" ) {
this.$store.commit("closeHovers");
} else {
this.$store.commit("showHover", "sidebar");
}
2021-03-21 11:51:58 +00:00
},
},
};
2021-02-25 18:37:07 +00:00
</script>
2021-03-21 11:51:58 +00:00
<style></style>