Skip to content

Commit

Permalink
web/satellite: request passphrasse on project change. Small styling f…
Browse files Browse the repository at this point in the history
…ixes

WHAT:
rerequest passphrase when user selects another project
small styling fixes

WHY:
bakeoff

Change-Id: I59da49b3efff1c1a60fbbdc622ae497a1326b347
  • Loading branch information
VitaliiShpital committed Apr 16, 2021
1 parent b57819f commit 9cd17fd
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default class ConfirmDeletePopup extends Vue {
line-height: 21px;
text-align: center;
color: #000;
margin: 20px 0;
}
&__list-label {
Expand All @@ -160,6 +161,7 @@ export default class ConfirmDeletePopup extends Vue {
color: #e30011;
font-family: 'font_medium', sans-serif;
white-space: nowrap;
margin-bottom: 30px;
}
&__list {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ export default class PermissionsStep extends Vue {
font-size: 16px;
line-height: 23px;
color: #0068dc;
margin-top: 20px;
}
}
Expand Down
3 changes: 2 additions & 1 deletion web/satellite/src/components/account/ChangePasswordPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ export default class ChangePasswordPopup extends Vue {
font-family: 'font_regular', sans-serif;
}
.input-container.full-input {
.full-input {
width: 100%;
margin-bottom: 15px;
}
.change-password-row-container {
Expand Down
1 change: 1 addition & 0 deletions web/satellite/src/components/account/EditProfilePopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default class EditProfilePopup extends Vue {
flex-direction: row;
align-content: center;
justify-content: flex-start;
margin-bottom: 20px;
}
.edit-profile-popup-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class SortingHeader extends Vue {}
.sort-header-container {
display: flex;
width: 100%;
margin-bottom: 10px;
&__item {
text-align: left;
Expand Down
1 change: 1 addition & 0 deletions web/satellite/src/components/common/HeaderedInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default class HeaderedInput extends HeaderlessInput {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
&__main {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion web/satellite/src/components/errors/Page404.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import MainIcon from '@/../static/images/errors/404.svg';
import LogoIcon from '@/../static/images/dcs-logo.svg';
import MainIcon from '@/../static/images/errors/404.svg';
import TextIcon from '@/../static/images/errors/text.svg';
@Component({
Expand Down
2 changes: 1 addition & 1 deletion web/satellite/src/components/errors/Page50X.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import MainIcon from '@/../static/images/errors/50X.svg';
import LogoIcon from '@/../static/images/dcs-logo.svg';
import MainIcon from '@/../static/images/errors/50X.svg';
import TextIcon from '@/../static/images/errors/text.svg';
@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import SelectionIcon from '@/../static/images/header/selection.svg';
import { RouteConfig } from '@/router';
import { ACCESS_GRANTS_ACTIONS } from '@/store/modules/accessGrants';
import { BUCKET_ACTIONS } from '@/store/modules/buckets';
import { OBJECTS_ACTIONS } from '@/store/modules/objects';
import { PAYMENTS_ACTIONS } from '@/store/modules/payments';
import { PROJECTS_ACTIONS } from '@/store/modules/projects';
import { Project } from '@/types/projects';
Expand All @@ -65,6 +66,11 @@ export default class ProjectDropdown extends Vue {
await this.$store.dispatch(PM_ACTIONS.SET_SEARCH_QUERY, '');
this.closeDropdown();
if (this.isObjectsView) {
await this.$store.dispatch(OBJECTS_ACTIONS.CLEAR);
await this.$router.push({name: RouteConfig.Objects.name}).catch(() => {return; });
}
try {
await this.$store.dispatch(PAYMENTS_ACTIONS.GET_PROJECT_USAGE_AND_CHARGES_CURRENT_ROLLUP);
await this.$store.dispatch(PM_ACTIONS.FETCH, this.FIRST_PAGE);
Expand All @@ -90,21 +96,6 @@ export default class ProjectDropdown extends Vue {
return this.$store.getters.selectedProject;
}
/**
* Indicates if create project button is shown.
*/
public get isCreateProjectButtonShown(): boolean {
return this.$store.state.appStateModule.appState.isCreateProjectButtonShown;
}
/**
* Redirects to create project page.
*/
public onCreateProjectsClick(): void {
this.$router.push(RouteConfig.CreateProject.path);
this.closeDropdown();
}
/**
* Closes dropdown.
*/
Expand All @@ -119,6 +110,13 @@ export default class ProjectDropdown extends Vue {
this.$router.push(RouteConfig.ProjectsList.path);
this.$emit('close');
}
/**
* Indicates if current route is objects view.
*/
private get isObjectsView(): boolean {
return this.$route.path.includes(RouteConfig.Objects.path);
}
}
</script>

Expand Down Expand Up @@ -206,7 +204,7 @@ export default class ProjectDropdown extends Vue {
justify-content: space-between;
align-items: center;
width: calc(100% - 50px);
padding: 5px 25px;
padding: 15px 25px;
&__text,
&__arrow {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

&__title {
margin-left: 13px;
margin: 8px 0 14px 13px;
font-size: 14px;
line-height: 20px;
color: #1b2533;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class OverviewStep extends Vue {
this.isLoading = false;
await this.$router.push(RouteConfig.Objects.path);
await this.$router.push(RouteConfig.Objects.path).catch(() => {return; });
} catch (error) {
await this.$notify.error(error.message);
this.isLoading = false;
Expand Down
3 changes: 2 additions & 1 deletion web/satellite/src/components/project/CreateProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="create-project-area">
<div class="create-project-area__container">
<img src="@/../static/images/project/createProject.png" alt="create project image">
<h2 class="create-project-area__title">Create a Project</h2>
<h2 class="create-project-area__container__title">Create a Project</h2>
<HeaderedInput
label="Project Name"
additional-label="Up To 20 Characters"
Expand Down Expand Up @@ -236,6 +236,7 @@ export default class NewProjectPopup extends Vue {
line-height: 34px;
color: #384b65;
font-family: 'font_bold', sans-serif;
margin: 15px 0 30px 0;
}
&__button-container {
Expand Down
2 changes: 1 addition & 1 deletion web/satellite/src/views/forgotPassword/forgotPassword.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ body {

&__logo {
cursor: pointer;
width: 140px;
width: 207px;
height: 62px;
}

Expand Down
2 changes: 1 addition & 1 deletion web/satellite/src/views/login/loginArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

&__logo {
cursor: pointer;
width: 140px;
width: 207px;
height: 62px;
}

Expand Down
8 changes: 3 additions & 5 deletions web/satellite/src/views/register/registerArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ body {

&__logo {
cursor: pointer;
width: 140px;
width: 207px;
height: 62px;
}

Expand Down Expand Up @@ -126,11 +126,9 @@ body {
align-items: center;
justify-content: space-between;
width: 100%;
margin-top: 20px;

&__terms-area {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;

Expand All @@ -141,8 +139,7 @@ body {
&__terms-confirmation {
font-size: 14px;
line-height: 20px;
margin-top: 14px;
margin-left: 10px;
margin: 4px 0 0 10px;
color: #384b65;
}

Expand Down Expand Up @@ -249,6 +246,7 @@ body {

.input-wrap.full-input {
width: 100%;
margin-bottom: 15px;
}

.image {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`CreateProject.vue renders correctly 1`] = `
<div class="create-project-area">
<div class="create-project-area__container"><img src="@/../static/images/project/createProject.png" alt="create project image">
<h2 class="create-project-area__title">Create a Project</h2>
<h2 class="create-project-area__container__title">Create a Project</h2>
<div class="input-container full-input">
<div class="label-container">
<div class="label-container__main">
Expand Down

0 comments on commit 9cd17fd

Please sign in to comment.