From 70b1d1050ac1a28c09ffda28062ae9a454f3f030 Mon Sep 17 00:00:00 2001 From: Nikolay Yurchenko Date: Thu, 13 Dec 2018 12:18:57 +0200 Subject: [PATCH] [V3-349] markup for delete account dialog (#850) --- .../dashboard/account/AccountArea.vue | 5 +- .../dashboard/account/DeleteAccontPopup.vue | 194 ++++++++++++++++++ .../src/utils/constants/emptyStatesImages.ts | 32 ++- .../notifications/NotificationArea.spec.ts | 7 - 4 files changed, 229 insertions(+), 9 deletions(-) create mode 100644 web/satellite/src/components/dashboard/account/DeleteAccontPopup.vue diff --git a/web/satellite/src/components/dashboard/account/AccountArea.vue b/web/satellite/src/components/dashboard/account/AccountArea.vue index a794d0114..e2b6794cf 100644 --- a/web/satellite/src/components/dashboard/account/AccountArea.vue +++ b/web/satellite/src/components/dashboard/account/AccountArea.vue @@ -173,6 +173,7 @@
+ @@ -181,6 +182,7 @@ import { Component, Vue } from 'vue-property-decorator'; import Button from '@/components/common/Button.vue'; import HeaderedInput from '@/components/common/HeaderedInput.vue'; import Checkbox from '@/components/common/Checkbox.vue'; +import DeleteAccontPopup from '@/components/dashboard/account/DeleteAccontPopup.vue'; @Component( { @@ -458,7 +460,8 @@ import Checkbox from '@/components/common/Checkbox.vue'; components: { Button, HeaderedInput, - Checkbox + Checkbox, + DeleteAccontPopup }, computed: { } diff --git a/web/satellite/src/components/dashboard/account/DeleteAccontPopup.vue b/web/satellite/src/components/dashboard/account/DeleteAccontPopup.vue new file mode 100644 index 000000000..c0c13d91e --- /dev/null +++ b/web/satellite/src/components/dashboard/account/DeleteAccontPopup.vue @@ -0,0 +1,194 @@ +// Copyright (C) 2018 Storj Labs, Inc. +// See LICENSE for copying information. + + + + + + diff --git a/web/satellite/src/utils/constants/emptyStatesImages.ts b/web/satellite/src/utils/constants/emptyStatesImages.ts index 5904af64f..5d7974a4e 100644 --- a/web/satellite/src/utils/constants/emptyStatesImages.ts +++ b/web/satellite/src/utils/constants/emptyStatesImages.ts @@ -70,5 +70,35 @@ export const EMPTY_STATE_IMAGES = { - ` + `, + DELETE_ACCOUNT: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + `, } \ No newline at end of file diff --git a/web/satellite/tests/unit/notifications/NotificationArea.spec.ts b/web/satellite/tests/unit/notifications/NotificationArea.spec.ts index 86ac5563d..d56b96cf3 100644 --- a/web/satellite/tests/unit/notifications/NotificationArea.spec.ts +++ b/web/satellite/tests/unit/notifications/NotificationArea.spec.ts @@ -5,12 +5,6 @@ import { shallowMount, mount } from '@vue/test-utils'; import NotificationArea from '@/components/notifications/NotificationArea.vue'; import { NOTIFICATION_TYPES } from '@/utils/constants/notification'; import { DelayedNotification } from '@/utils/entities/DelayedNotification'; -import Vuex from 'vuex'; -import { createLocalVue } from 'vue-test-utils'; - - -const localVue = createLocalVue(); -localVue.use(Vuex); describe('Notification.vue', () => { @@ -33,7 +27,6 @@ describe('Notification.vue', () => { ); const wrapper = mount(NotificationArea, { - localVue, computed: { currentNotification: () => notification, }