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.
|
|
|
|
|
|
2018-11-14 14:00:01 +00:00
|
|
|
|
<template>
|
2018-11-19 15:32:50 +00:00
|
|
|
|
<div class="dashboard-container">
|
2019-04-05 16:08:14 +01:00
|
|
|
|
<div v-if="isLoading" class="loading-overlay active">
|
2019-10-04 14:22:26 +01:00
|
|
|
|
<img class="loading-image" src="@/../static/images/register/Loading.gif" alt="Company logo loading gif">
|
2019-04-05 16:08:14 +01:00
|
|
|
|
</div>
|
2019-09-05 09:41:39 +01:00
|
|
|
|
<div v-if="!isLoading" class="dashboard-container__wrap">
|
2019-10-02 10:42:12 +01:00
|
|
|
|
<NavigationArea class="regular-navigation"/>
|
2019-03-26 16:56:38 +00:00
|
|
|
|
<div class="dashboard-container__wrap__column">
|
2019-10-02 10:42:12 +01:00
|
|
|
|
<DashboardHeader/>
|
2019-03-26 16:56:38 +00:00
|
|
|
|
<div class="dashboard-container__main-area">
|
2019-12-02 19:27:56 +00:00
|
|
|
|
<div class="dashboard-container__main-area__banner-area">
|
|
|
|
|
<VBanner
|
|
|
|
|
v-if="isBannerShown"
|
2019-12-16 17:13:30 +00:00
|
|
|
|
text="We’ve Now Added Billing!"
|
|
|
|
|
additional-text="Your attention is required. Add a credit card to set up your account."
|
|
|
|
|
:path="billingPath"
|
2019-12-02 19:27:56 +00:00
|
|
|
|
/>
|
|
|
|
|
</div>
|
2019-11-27 14:57:56 +00:00
|
|
|
|
<div class="dashboard-container__main-area__content">
|
|
|
|
|
<router-view/>
|
|
|
|
|
</div>
|
2019-03-26 16:56:38 +00:00
|
|
|
|
</div>
|
2018-12-05 16:39:03 +00:00
|
|
|
|
</div>
|
2020-02-28 16:33:11 +00:00
|
|
|
|
<div
|
|
|
|
|
v-if="isBlurShown"
|
|
|
|
|
class="dashboard-container__blur-area"
|
|
|
|
|
>
|
|
|
|
|
<div class="dashboard-container__blur-area__button" @click="onCreateButtonClick">
|
|
|
|
|
<span class="dashboard-container__blur-area__button__label">+ Create Project</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="dashboard-container__blur-area__message-box">
|
|
|
|
|
<div class="dashboard-container__blur-area__message-box__left-area">
|
|
|
|
|
<AddImage/>
|
|
|
|
|
<span class="dashboard-container__blur-area__message-box__left-area__message">
|
|
|
|
|
Create your first project
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<CloseCrossIcon class="dashboard-container__blur-area__message-box__close-cross-container" @click="onCloseClick"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-11-14 14:00:01 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-09-09 11:33:39 +01:00
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
|
|
2019-11-27 14:57:56 +00:00
|
|
|
|
import VBanner from '@/components/common/VBanner.vue';
|
2019-09-26 14:36:12 +01:00
|
|
|
|
import DashboardHeader from '@/components/header/HeaderArea.vue';
|
2019-09-09 11:33:39 +01:00
|
|
|
|
import NavigationArea from '@/components/navigation/NavigationArea.vue';
|
|
|
|
|
|
2020-02-28 16:33:11 +00:00
|
|
|
|
import CloseCrossIcon from '@/../static/images/common/closeCross.svg';
|
|
|
|
|
import AddImage from '@/../static/images/dashboard/Add.svg';
|
|
|
|
|
|
2019-10-23 18:33:24 +01:00
|
|
|
|
import { ErrorUnauthorized } from '@/api/errors/ErrorUnauthorized';
|
2019-09-09 11:33:39 +01:00
|
|
|
|
import { RouteConfig } from '@/router';
|
|
|
|
|
import { BUCKET_ACTIONS } from '@/store/modules/buckets';
|
2019-10-23 18:33:24 +01:00
|
|
|
|
import { PAYMENTS_ACTIONS } from '@/store/modules/payments';
|
2019-09-09 11:33:39 +01:00
|
|
|
|
import { PROJECTS_ACTIONS } from '@/store/modules/projects';
|
|
|
|
|
import { PROJECT_USAGE_ACTIONS } from '@/store/modules/usage';
|
|
|
|
|
import { USER_ACTIONS } from '@/store/modules/users';
|
2020-02-18 15:48:19 +00:00
|
|
|
|
import { CreditCard } from '@/types/payments';
|
2019-09-09 11:33:39 +01:00
|
|
|
|
import { Project } from '@/types/projects';
|
|
|
|
|
import {
|
|
|
|
|
API_KEYS_ACTIONS,
|
|
|
|
|
APP_STATE_ACTIONS,
|
|
|
|
|
PM_ACTIONS,
|
|
|
|
|
} from '@/utils/constants/actionNames';
|
|
|
|
|
import { AppState } from '@/utils/constants/appStateEnum';
|
|
|
|
|
|
2019-10-23 18:33:24 +01:00
|
|
|
|
const {
|
|
|
|
|
SETUP_ACCOUNT,
|
|
|
|
|
GET_BALANCE,
|
|
|
|
|
GET_CREDIT_CARDS,
|
2019-10-31 16:56:54 +00:00
|
|
|
|
GET_BILLING_HISTORY,
|
2020-03-04 13:23:10 +00:00
|
|
|
|
GET_PROJECT_CHARGES_CURRENT_ROLLUP,
|
2019-10-23 18:33:24 +01:00
|
|
|
|
} = PAYMENTS_ACTIONS;
|
|
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
|
NavigationArea,
|
|
|
|
|
DashboardHeader,
|
2019-11-27 14:57:56 +00:00
|
|
|
|
VBanner,
|
2020-02-28 16:33:11 +00:00
|
|
|
|
AddImage,
|
|
|
|
|
CloseCrossIcon,
|
2019-09-13 15:58:18 +01:00
|
|
|
|
},
|
2019-09-09 11:33:39 +01:00
|
|
|
|
})
|
2019-09-26 14:36:12 +01:00
|
|
|
|
export default class DashboardArea extends Vue {
|
2020-02-28 16:33:11 +00:00
|
|
|
|
public readonly billingPath: string = RouteConfig.Account.with(RouteConfig.Billing).path;
|
2019-12-16 17:13:30 +00:00
|
|
|
|
|
2020-02-14 15:35:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* Lifecycle hook after initial render.
|
|
|
|
|
* Pre fetches user`s and project information.
|
|
|
|
|
*/
|
2019-09-27 15:41:04 +01:00
|
|
|
|
public async mounted(): Promise<void> {
|
|
|
|
|
// TODO: combine all project related requests in one
|
|
|
|
|
try {
|
|
|
|
|
await this.$store.dispatch(USER_ACTIONS.GET);
|
|
|
|
|
} catch (error) {
|
2020-02-03 16:55:44 +00:00
|
|
|
|
if (!(error instanceof ErrorUnauthorized)) {
|
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.CHANGE_STATE, AppState.ERROR);
|
|
|
|
|
await this.$notify.error(error.message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setTimeout(async () => await this.$router.push(RouteConfig.Login.path), 1000);
|
2019-09-27 15:41:04 +01:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2020-02-18 15:48:19 +00:00
|
|
|
|
let balance: number = 0;
|
|
|
|
|
let creditCards: CreditCard[] = [];
|
|
|
|
|
|
2019-11-04 10:54:25 +00:00
|
|
|
|
try {
|
|
|
|
|
await this.$store.dispatch(SETUP_ACCOUNT);
|
2020-02-18 15:48:19 +00:00
|
|
|
|
balance = await this.$store.dispatch(GET_BALANCE);
|
|
|
|
|
creditCards = await this.$store.dispatch(GET_CREDIT_CARDS);
|
2019-11-04 10:54:25 +00:00
|
|
|
|
await this.$store.dispatch(GET_BILLING_HISTORY);
|
2020-03-04 13:23:10 +00:00
|
|
|
|
await this.$store.dispatch(GET_PROJECT_CHARGES_CURRENT_ROLLUP);
|
2019-11-04 10:54:25 +00:00
|
|
|
|
} catch (error) {
|
|
|
|
|
await this.$notify.error(error.message);
|
|
|
|
|
}
|
2019-10-23 18:33:24 +01:00
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
let projects: Project[] = [];
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
try {
|
|
|
|
|
projects = await this.$store.dispatch(PROJECTS_ACTIONS.FETCH);
|
|
|
|
|
} catch (error) {
|
2019-10-28 17:33:06 +00:00
|
|
|
|
await this.$notify.error(error.message);
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
return;
|
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2020-02-18 15:48:19 +00:00
|
|
|
|
if (!projects.length && !creditCards.length && balance === 0) {
|
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.CHANGE_STATE, AppState.LOADED_EMPTY);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
await this.$router.push(RouteConfig.Overview.path);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
if (!projects.length) {
|
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.CHANGE_STATE, AppState.LOADED_EMPTY);
|
2019-08-29 15:41:27 +01:00
|
|
|
|
|
2020-02-28 16:33:11 +00:00
|
|
|
|
if (this.$store.getters.isBonusCouponApplied) {
|
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.TOGGLE_CONTENT_BLUR);
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
if (!this.isRouteAccessibleWithoutProject()) {
|
|
|
|
|
try {
|
2020-02-28 16:33:11 +00:00
|
|
|
|
await this.$router.push(RouteConfig.Account.with(RouteConfig.Profile).path);
|
2020-02-18 15:48:19 +00:00
|
|
|
|
} catch (error) {
|
2019-09-09 11:33:39 +01:00
|
|
|
|
return;
|
2019-09-05 09:41:39 +01:00
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
return;
|
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2020-01-02 14:17:57 +00:00
|
|
|
|
await this.$store.dispatch(PROJECTS_ACTIONS.SELECT, projects[0].id);
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
await this.$store.dispatch(PM_ACTIONS.SET_SEARCH_QUERY, '');
|
|
|
|
|
try {
|
|
|
|
|
await this.$store.dispatch(PM_ACTIONS.FETCH, 1);
|
|
|
|
|
} catch (error) {
|
2019-10-28 17:33:06 +00:00
|
|
|
|
await this.$notify.error(`Unable to fetch project members. ${error.message}`);
|
2019-09-27 15:41:04 +01:00
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2020-01-02 14:17:57 +00:00
|
|
|
|
try {
|
|
|
|
|
await this.$store.dispatch(PROJECTS_ACTIONS.GET_LIMITS, this.$store.getters.selectedProject.id);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
await this.$notify.error(`Unable to fetch project limits. ${error.message}`);
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
try {
|
|
|
|
|
await this.$store.dispatch(API_KEYS_ACTIONS.FETCH, 1);
|
|
|
|
|
} catch (error) {
|
2019-10-28 17:33:06 +00:00
|
|
|
|
await this.$notify.error(`Unable to fetch api keys. ${error.message}`);
|
2019-09-27 15:41:04 +01:00
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
try {
|
|
|
|
|
await this.$store.dispatch(PROJECT_USAGE_ACTIONS.FETCH_CURRENT_ROLLUP);
|
|
|
|
|
} catch (error) {
|
2019-10-28 17:33:06 +00:00
|
|
|
|
await this.$notify.error(`Unable to fetch project usage. ${error.message}`);
|
2019-09-27 15:41:04 +01:00
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
try {
|
|
|
|
|
await this.$store.dispatch(BUCKET_ACTIONS.FETCH, 1);
|
|
|
|
|
} catch (error) {
|
2019-10-28 17:33:06 +00:00
|
|
|
|
await this.$notify.error(`Unable to fetch buckets. ${error.message}`);
|
2019-09-27 15:41:04 +01:00
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
|
2020-02-28 16:33:11 +00:00
|
|
|
|
if (this.$store.getters.isBonusCouponApplied && !this.userHasHisOwnProject) {
|
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.TOGGLE_CONTENT_BLUR);
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.CHANGE_STATE, AppState.LOADED);
|
2019-09-09 11:33:39 +01:00
|
|
|
|
}
|
2019-09-05 09:41:39 +01:00
|
|
|
|
|
2020-02-14 15:35:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* Indicates if bonus banner should be rendered.
|
|
|
|
|
*/
|
2019-11-27 14:57:56 +00:00
|
|
|
|
public get isBannerShown(): boolean {
|
2020-02-18 15:48:19 +00:00
|
|
|
|
const isNotOverviewPage = this.$route.name === RouteConfig.Overview.name;
|
|
|
|
|
const hasCreditCards = this.$store.state.paymentsModule.creditCards.length > 0;
|
|
|
|
|
|
|
|
|
|
return !(isNotOverviewPage || hasCreditCards);
|
2019-11-27 14:57:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-02-14 15:35:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* Indicates if loading screen is active.
|
|
|
|
|
*/
|
2019-09-09 11:33:39 +01:00
|
|
|
|
public get isLoading(): boolean {
|
|
|
|
|
return this.$store.state.appStateModule.appState.fetchState === AppState.LOADING;
|
|
|
|
|
}
|
2019-08-29 15:41:27 +01:00
|
|
|
|
|
2020-02-28 16:33:11 +00:00
|
|
|
|
/**
|
|
|
|
|
* Indicates if content blur shown.
|
|
|
|
|
*/
|
|
|
|
|
public get isBlurShown(): boolean {
|
|
|
|
|
return this.$store.state.appStateModule.appState.isContentBlurShown;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Toggles create project popup showing.
|
|
|
|
|
*/
|
|
|
|
|
public onCreateButtonClick(): void {
|
|
|
|
|
this.onCloseClick();
|
|
|
|
|
this.$store.dispatch(APP_STATE_ACTIONS.TOGGLE_NEW_PROJ);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Hides blur.
|
|
|
|
|
*/
|
|
|
|
|
public onCloseClick(): void {
|
|
|
|
|
this.$store.dispatch(APP_STATE_ACTIONS.TOGGLE_CONTENT_BLUR);
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-27 15:41:04 +01:00
|
|
|
|
/**
|
2020-02-14 15:35:10 +00:00
|
|
|
|
* This method checks if current route is available when user has no created projects.
|
2019-09-27 15:41:04 +01:00
|
|
|
|
*/
|
|
|
|
|
private isRouteAccessibleWithoutProject(): boolean {
|
2019-11-27 14:57:56 +00:00
|
|
|
|
const availableRoutes = [
|
2019-09-27 15:41:04 +01:00
|
|
|
|
RouteConfig.Account.with(RouteConfig.Billing).path,
|
|
|
|
|
RouteConfig.Account.with(RouteConfig.Profile).path,
|
2020-02-18 15:48:19 +00:00
|
|
|
|
RouteConfig.Overview.path,
|
2019-09-27 15:41:04 +01:00
|
|
|
|
];
|
|
|
|
|
|
2019-11-27 14:57:56 +00:00
|
|
|
|
return availableRoutes.includes(this.$router.currentRoute.path.toLowerCase());
|
2018-12-18 14:43:23 +00:00
|
|
|
|
}
|
2020-02-28 16:33:11 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Indicates if user has his own project.
|
|
|
|
|
*/
|
|
|
|
|
private get userHasHisOwnProject(): boolean {
|
|
|
|
|
return this.$store.state.projectsModule.projects.some((project: Project) => project.ownerId === this.$store.getters.user.id);
|
|
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
|
}
|
2018-11-14 14:00:01 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2019-10-28 15:59:19 +00:00
|
|
|
|
.dashboard-container {
|
2018-11-14 14:00:01 +00:00
|
|
|
|
position: fixed;
|
2018-11-23 15:48:11 +00:00
|
|
|
|
max-width: 100%;
|
2019-10-28 15:59:19 +00:00
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
background-color: #f5f6fa;
|
2018-11-14 14:00:01 +00:00
|
|
|
|
z-index: 10;
|
2018-11-19 15:32:50 +00:00
|
|
|
|
|
2018-12-05 16:39:03 +00:00
|
|
|
|
&__wrap {
|
|
|
|
|
display: flex;
|
2019-03-26 16:56:38 +00:00
|
|
|
|
|
|
|
|
|
&__column {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2018-12-05 16:39:03 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-11-19 15:32:50 +00:00
|
|
|
|
&__main-area {
|
2018-12-05 16:39:03 +00:00
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
2019-11-27 14:57:56 +00:00
|
|
|
|
height: calc(100vh - 50px);
|
2020-01-23 13:19:12 +00:00
|
|
|
|
overflow-y: scroll;
|
2019-12-02 19:27:56 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2019-11-27 14:57:56 +00:00
|
|
|
|
|
2019-12-02 19:27:56 +00:00
|
|
|
|
&__banner-area {
|
|
|
|
|
flex: 0 1 auto;
|
|
|
|
|
}
|
2019-11-27 14:57:56 +00:00
|
|
|
|
|
2019-12-02 19:27:56 +00:00
|
|
|
|
&__content {
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
|
}
|
2020-02-28 16:33:11 +00:00
|
|
|
|
|
|
|
|
|
&__blur-area {
|
|
|
|
|
position: fixed;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
background-color: rgba(12, 37, 70, 0.5);
|
|
|
|
|
backdrop-filter: blur(4px);
|
|
|
|
|
z-index: 20;
|
|
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 30px;
|
|
|
|
|
right: 148px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 156px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border: 1px solid #2683ff;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
z-index: 21;
|
|
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
|
font-family: 'font_medium', sans-serif;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
color: #2683ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__message-box {
|
|
|
|
|
background-image: url('../../static/images/dashboard/message.png');
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
width: auto;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 80px;
|
|
|
|
|
right: 100px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
z-index: 21;
|
|
|
|
|
padding: 30px 30px 20px 20px;
|
|
|
|
|
|
|
|
|
|
&__left-area {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
|
font-family: 'font_regular', sans-serif;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 19px;
|
|
|
|
|
color: #373737;
|
|
|
|
|
margin-left: 15px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__close-cross-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
height: 17px;
|
|
|
|
|
width: 17px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
margin-left: 50px;
|
|
|
|
|
|
|
|
|
|
&:hover .close-cross-svg-path {
|
|
|
|
|
fill: #2683ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-11-14 14:00:01 +00:00
|
|
|
|
}
|
2019-07-10 10:55:40 +01:00
|
|
|
|
|
2019-10-28 15:59:19 +00:00
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
|
|
|
|
2019-09-20 11:21:22 +01:00
|
|
|
|
.regular-navigation {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-23 15:48:11 +00:00
|
|
|
|
@media screen and (max-width: 720px) {
|
2019-10-28 15:59:19 +00:00
|
|
|
|
|
2018-11-23 15:48:11 +00:00
|
|
|
|
.dashboard-container {
|
2019-09-26 14:36:12 +01:00
|
|
|
|
|
2019-10-28 15:59:19 +00:00
|
|
|
|
&__main-area {
|
2018-11-23 15:48:11 +00:00
|
|
|
|
left: 60px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-10 10:55:40 +01:00
|
|
|
|
|
2019-04-05 16:08:14 +01:00
|
|
|
|
.loading-overlay {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
background-color: rgba(134, 134, 148, 1);
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
-webkit-transition: all 0.5s linear;
|
|
|
|
|
-moz-transition: all 0.5s linear;
|
|
|
|
|
-o-transition: all 0.5s linear;
|
|
|
|
|
transition: all 0.5s linear;
|
|
|
|
|
|
2019-09-26 14:36:12 +01:00
|
|
|
|
.loading-image {
|
2019-04-05 16:08:14 +01:00
|
|
|
|
z-index: 200;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.loading-overlay.active {
|
|
|
|
|
visibility: visible;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2019-03-26 16:56:38 +00:00
|
|
|
|
</style>
|