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-04-01 12:24:45 +01:00
|
|
|
<template src="./navigationArea.html"></template>
|
2018-11-14 14:00:01 +00:00
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
2018-12-26 15:05:33 +00:00
|
|
|
import { mapState } from 'vuex';
|
2018-12-18 14:43:23 +00:00
|
|
|
import NAVIGATION_ITEMS from '@/utils/constants/navigationLinks';
|
2019-01-09 15:40:21 +00:00
|
|
|
import { APP_STATE_ACTIONS } from '@/utils/constants/actionNames';
|
|
|
|
import AddUserPopup from '@/components/team/AddUserPopup.vue';
|
2018-11-14 14:00:01 +00:00
|
|
|
|
|
|
|
@Component(
|
2018-12-18 14:43:23 +00:00
|
|
|
{
|
|
|
|
data: function () {
|
2018-11-14 14:00:01 +00:00
|
|
|
return {
|
2018-12-26 15:05:33 +00:00
|
|
|
navigation: NAVIGATION_ITEMS,
|
|
|
|
isPopupShown: false,
|
2018-12-18 14:43:23 +00:00
|
|
|
};
|
2018-12-26 15:05:33 +00:00
|
|
|
},
|
|
|
|
components: {
|
|
|
|
AddUserPopup,
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
togglePopup: function(): void {
|
|
|
|
if (!this.$store.getters.selectedProject.id) return;
|
|
|
|
|
2019-01-09 15:40:21 +00:00
|
|
|
this.$store.dispatch(APP_STATE_ACTIONS.TOGGLE_TEAM_MEMBERS);
|
2018-12-26 15:05:33 +00:00
|
|
|
},
|
2019-04-01 12:24:45 +01:00
|
|
|
onLogoClick: function (): void {
|
|
|
|
location.reload();
|
|
|
|
}
|
2018-12-26 15:05:33 +00:00
|
|
|
},
|
|
|
|
computed: mapState({
|
2019-01-09 15:40:21 +00:00
|
|
|
isAddTeamMembersPopupShown: (state: any) => state.appStateModule.appState.isAddTeamMembersPopupShown,
|
2019-04-05 16:08:14 +01:00
|
|
|
isProjectNotSelected: (state: any) => state.projectsModule.selectedProject.id === '',
|
2018-12-26 15:05:33 +00:00
|
|
|
}),
|
2018-11-14 14:00:01 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2018-12-18 14:43:23 +00:00
|
|
|
export default class NavigationArea extends Vue {
|
|
|
|
}
|
2018-11-14 14:00:01 +00:00
|
|
|
</script>
|
|
|
|
|
2019-04-01 12:24:45 +01:00
|
|
|
<style src="./navigationArea.scss" lang="scss"></style>
|