storj/web/satellite/src/components/header/HeaderArea.vue
NickolaiYurchenko 1c1e62be09 web/satellite: comments update
Change-Id: If5779cf8d80cf9fac7180498ce748f427df57e0a
2020-02-14 18:54:31 +02:00

55 lines
1.6 KiB
Vue

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
<template src="./headerArea.html"></template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import NewProjectArea from '@/components/header/NewProjectArea.vue';
import ProjectSelectionArea from '@/components/header/projectSelection/ProjectSelectionArea.vue';
import NavigationArea from '@/components/navigation/NavigationArea.vue';
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';
import AccountButton from './AccountButton.vue';
@Component({
components: {
ProjectCreationSuccessPopup,
ProjectSelectionArea,
NewProjectArea,
AccountButton,
NavigationArea,
NavigationMenuIcon,
NavigationCloseIcon,
LogoIcon,
},
})
export default class DashboardHeader extends Vue {
/**
* Indicates if navigation toggling button is visible depending on screen width.
*/
public isNavigationVisible: boolean = false;
/**
* Toggle navigation visibility.
*/
public toggleNavigationVisibility(): void {
this.isNavigationVisible = !this.isNavigationVisible;
}
/**
* Reloads page.
*/
public onLogoClick(): void {
location.reload();
}
}
</script>
<style src="./headerArea.scss" scoped lang="scss"></style>