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

39 lines
1.1 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="./header.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 AccountButton from './AccountButton.vue';
@Component({
components: {
ProjectCreationSuccessPopup,
ProjectSelectionArea,
NewProjectArea,
AccountButton,
NavigationArea,
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="./header.scss" lang="scss"></style>