Procházet zdrojové kódy

Remove unnecessary Username from footer

Bubka před 5 roky
rodič
revize
362fdbf950

+ 1 - 6
resources/js/components/Footer.vue

@@ -8,7 +8,7 @@
             </div>
         </div>
         <div class="content has-text-centered">
-            {{ $t('auth.hello', {username: username}) }} <router-link :to="{ name: 'profile' }" class="has-text-grey">{{ $t('commons.profile') }}</router-link> - <a class="has-text-grey" @click="logout">{{ $t('auth.sign_out') }}</a>
+            <router-link :to="{ name: 'profile' }" class="has-text-grey">{{ $t('commons.profile') }}</router-link> - <a class="has-text-grey" @click="logout">{{ $t('auth.sign_out') }}</a>
         </div>
     </footer>
 </template>
@@ -19,7 +19,6 @@
 
         data(){
             return {
-                username : null,
             }
         },
 
@@ -27,10 +26,6 @@
             showButtons: true,
         },
 
-        created() {
-            this.username = localStorage.getItem('user')
-        },
-
         methods: {
 
             async logout(evt) {

+ 0 - 2
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

+ 0 - 2
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 ) {