storj/web/satellite/src/components/header/HeaderArea.vue

46 lines
1.4 KiB
Vue
Raw Normal View History

2019-01-24 20:15:10 +00:00
// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
<template src="./headerArea.html"></template>
<script lang="ts">
2019-09-09 11:33:39 +01:00
import { Component, Vue } from 'vue-property-decorator';
2019-09-09 11:33:39 +01:00
import NewProjectArea from '@/components/header/NewProjectArea.vue';
import ProjectSelectionArea from '@/components/header/projectSelection/ProjectSelectionArea.vue';
import NavigationArea from '@/components/navigation/NavigationArea.vue';
2019-09-09 11:33:39 +01:00
import ProjectCreationSuccessPopup from '@/components/project/ProjectCreationSuccessPopup.vue';
import LogoIcon from '@/../static/images/header/logo.svg';
import NavigationCloseIcon from '@/../static/images/header/navigationClose.svg';
import NavigationMenuIcon from '@/../static/images/header/navigationMenu.svg';
2019-09-09 11:33:39 +01:00
import AccountButton from './AccountButton.vue';
@Component({
components: {
ProjectCreationSuccessPopup,
ProjectSelectionArea,
NewProjectArea,
AccountButton,
NavigationArea,
NavigationMenuIcon,
NavigationCloseIcon,
LogoIcon,
2019-09-09 11:33:39 +01:00
},
})
export default class DashboardHeader extends Vue {
public isNavigationVisible: boolean = false;
public toggleNavigationVisibility(): void {
this.isNavigationVisible = !this.isNavigationVisible;
}
public onLogoClick(): void {
location.reload();
}
}
</script>
<style src="./headerArea.scss" scoped lang="scss"></style>