From e79e79d2e169afc2da97fd040e1c1c3b3db95f0c Mon Sep 17 00:00:00 2001 From: Vitalii Date: Thu, 16 Jun 2022 20:57:39 +0300 Subject: [PATCH] web/satellite: fix linksharing issue Bucket creation/open flow wasn't storing credentials correctly inside Vuex store. Change-Id: Ifc2eb8ca79a672dbc44d95089f7d6cee2e71bb57 --- web/satellite/src/components/common/VInput.vue | 5 +++++ web/satellite/src/components/modals/OpenBucketModal.vue | 1 + web/satellite/src/components/objects/BucketCreation.vue | 1 + 3 files changed, 7 insertions(+) diff --git a/web/satellite/src/components/common/VInput.vue b/web/satellite/src/components/common/VInput.vue index c4246829a..33cee11b4 100644 --- a/web/satellite/src/components/common/VInput.vue +++ b/web/satellite/src/components/common/VInput.vue @@ -37,6 +37,7 @@ :id="label" v-model="value" class="input" + :class="{'password-input' : isPassword}" :placeholder="placeholder" :type="type" :style="style.inputStyle" @@ -302,6 +303,10 @@ export default class VInput extends Vue { animation: spin 2s linear infinite; } + .password-input { + padding-right: 55px; + } + @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } diff --git a/web/satellite/src/components/modals/OpenBucketModal.vue b/web/satellite/src/components/modals/OpenBucketModal.vue index ba9922af6..533087885 100644 --- a/web/satellite/src/components/modals/OpenBucketModal.vue +++ b/web/satellite/src/components/modals/OpenBucketModal.vue @@ -186,6 +186,7 @@ export default class OpenBucketModal extends Vue { if (this.enterError) this.enterError = ''; this.passphrase = passphrase; + this.$store.dispatch(OBJECTS_ACTIONS.SET_PASSPHRASE, this.passphrase); } /** diff --git a/web/satellite/src/components/objects/BucketCreation.vue b/web/satellite/src/components/objects/BucketCreation.vue index 1ab4ee548..b0bb54fd6 100644 --- a/web/satellite/src/components/objects/BucketCreation.vue +++ b/web/satellite/src/components/objects/BucketCreation.vue @@ -72,6 +72,7 @@ export default class BucketCreation extends Vue { */ public setPassphrase(passphrase: string): void { this.passphrase = passphrase; + this.$store.dispatch(OBJECTS_ACTIONS.SET_PASSPHRASE, this.passphrase); } /**