From e8e6dd056aa13c49f1a1b553b280da7c1417cb24 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 27 Apr 2023 16:53:15 -0400 Subject: [PATCH] web/satellite: remove project member modal Create modal for removing project members issue: https://github.com/storj/storj/issues/5751 Change-Id: I621b8e1de54270faebb7577b8431903c62a6e45c --- .../src/components/common/VButton.vue | 8 +- .../modals/RemoveProjectMemberModal.vue | 245 ++++++++++++++++++ .../src/components/team/HeaderArea.vue | 94 ++----- .../src/store/modules/projectMembersStore.ts | 5 + .../src/utils/constants/appStatePopUps.ts | 3 + .../static/images/team/teamMember.svg | 7 + 6 files changed, 285 insertions(+), 77 deletions(-) create mode 100644 web/satellite/src/components/modals/RemoveProjectMemberModal.vue create mode 100644 web/satellite/static/images/team/teamMember.svg diff --git a/web/satellite/src/components/common/VButton.vue b/web/satellite/src/components/common/VButton.vue index f364aa6da..8cfb4c3c2 100644 --- a/web/satellite/src/components/common/VButton.vue +++ b/web/satellite/src/components/common/VButton.vue @@ -181,16 +181,16 @@ function handleClick(): void { } .solid-red { - background-color: var(--c-red-3) !important; - border: 1px solid var(--c-red-3) !important; + background-color: #ff1313 !important; + border: 1px solid #ff1313 !important; .label { color: #fff !important; } &:hover { - background-color: #790000 !important; - border: 1px solid #790000 !important; + background-color: #c90e0e !important; + border: 1px solid #c90e0e !important; } } diff --git a/web/satellite/src/components/modals/RemoveProjectMemberModal.vue b/web/satellite/src/components/modals/RemoveProjectMemberModal.vue new file mode 100644 index 000000000..3783d063d --- /dev/null +++ b/web/satellite/src/components/modals/RemoveProjectMemberModal.vue @@ -0,0 +1,245 @@ +// Copyright (C) 2023 Storj Labs, Inc. +// See LICENSE for copying information. + + + + + + diff --git a/web/satellite/src/components/team/HeaderArea.vue b/web/satellite/src/components/team/HeaderArea.vue index d5aa8192b..41feb8a50 100644 --- a/web/satellite/src/components/team/HeaderArea.vue +++ b/web/satellite/src/components/team/HeaderArea.vue @@ -27,7 +27,7 @@ height="40px" font-size="13px" border-radius="8px" - :on-press="toggleTeamMembersModal" + :on-press="toggleAddTeamMembersModal" icon="add" :is-disabled="isAddButtonDisabled" /> @@ -49,7 +49,7 @@ label="Delete" width="122px" height="40px" - :on-press="onFirstDeleteClick" + :on-press="toggleRemoveTeamMembersModal" /> -
- Are you sure you want to delete {{ selectedProjectMembersCount }} {{ userCountTitle }}? -
- - -
-
-
-