From 362fdbf9505547089f26b6ea719925cc60316212 Mon Sep 17 00:00:00 2001
From: Bubka <858858+Bubka@users.noreply.github.com>
Date: Thu, 13 Feb 2020 17:19:55 +0100
Subject: [PATCH] Remove unnecessary Username from footer
---
resources/js/components/Footer.vue | 7 +------
resources/js/views/Accounts.vue | 2 --
resources/js/views/profile/Account.vue | 2 --
3 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/resources/js/components/Footer.vue b/resources/js/components/Footer.vue
index 697d5e15..f8c55916 100644
--- a/resources/js/components/Footer.vue
+++ b/resources/js/components/Footer.vue
@@ -8,7 +8,7 @@
- {{ $t('auth.hello', {username: username}) }}
{{ $t('commons.profile') }} -
{{ $t('auth.sign_out') }}
+
{{ $t('commons.profile') }} -
{{ $t('auth.sign_out') }}
@@ -19,7 +19,6 @@
data(){
return {
- username : null,
}
},
@@ -27,10 +26,6 @@
showButtons: true,
},
- created() {
- this.username = localStorage.getItem('user')
- },
-
methods: {
async logout(evt) {
diff --git a/resources/js/views/Accounts.vue b/resources/js/views/Accounts.vue
index 610e86b9..45c516df 100644
--- a/resources/js/views/Accounts.vue
+++ b/resources/js/views/Accounts.vue
@@ -140,7 +140,6 @@
selectedAccounts: [],
ShowTwofaccountInModal : false,
search: '',
- username : null,
editMode: this.InitialEditMode,
showQuickForm: false,
form: new Form({
@@ -167,7 +166,6 @@
created() {
- this.username = localStorage.getItem('user')
this.fetchAccounts()
// stop OTP generation on modal close
diff --git a/resources/js/views/profile/Account.vue b/resources/js/views/profile/Account.vue
index 38055646..c1778f04 100644
--- a/resources/js/views/profile/Account.vue
+++ b/resources/js/views/profile/Account.vue
@@ -43,8 +43,6 @@
.then(response => {
this.success = response.data.message
-
- localStorage.setItem('user',response.data.username)
})
.catch(error => {
if( error.response.status === 400 ) {