2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-11-27 10:51:33 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2019-09-26 14:36:12 +01:00
|
|
|
<template src="./headerArea.html"></template>
|
2018-11-14 14:00:01 +00:00
|
|
|
|
|
|
|
<script lang="ts">
|
2019-09-09 11:33:39 +01:00
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
2018-11-14 14:00:01 +00:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
import NewProjectArea from '@/components/header/NewProjectArea.vue';
|
|
|
|
import ProjectSelectionArea from '@/components/header/projectSelection/ProjectSelectionArea.vue';
|
2019-09-20 11:21:22 +01:00
|
|
|
import NavigationArea from '@/components/navigation/NavigationArea.vue';
|
2019-09-09 11:33:39 +01:00
|
|
|
import ProjectCreationSuccessPopup from '@/components/project/ProjectCreationSuccessPopup.vue';
|
|
|
|
|
2019-10-23 13:26:39 +01:00
|
|
|
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,
|
2019-09-20 11:21:22 +01:00
|
|
|
NavigationArea,
|
2019-10-23 13:26:39 +01:00
|
|
|
NavigationMenuIcon,
|
|
|
|
NavigationCloseIcon,
|
|
|
|
LogoIcon,
|
2019-09-09 11:33:39 +01:00
|
|
|
},
|
|
|
|
})
|
2019-09-20 11:21:22 +01:00
|
|
|
export default class DashboardHeader extends Vue {
|
|
|
|
public isNavigationVisible: boolean = false;
|
2018-11-23 15:48:11 +00:00
|
|
|
|
2019-09-20 11:21:22 +01:00
|
|
|
public toggleNavigationVisibility(): void {
|
|
|
|
this.isNavigationVisible = !this.isNavigationVisible;
|
|
|
|
}
|
2018-11-23 15:48:11 +00:00
|
|
|
|
2019-09-20 11:21:22 +01:00
|
|
|
public onLogoClick(): void {
|
|
|
|
location.reload();
|
2018-11-14 14:00:01 +00:00
|
|
|
}
|
2019-09-20 11:21:22 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2019-09-26 14:36:12 +01:00
|
|
|
<style src="./headerArea.scss" scoped lang="scss"></style>
|