浏览代码

Remove unnecessary Username from footer

Bubka 5 年之前
父节点
当前提交
362fdbf950
共有 3 个文件被更改,包括 1 次插入10 次删除
  1. 1 6
      resources/js/components/Footer.vue
  2. 0 2
      resources/js/views/Accounts.vue
  3. 0 2
      resources/js/views/profile/Account.vue

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

@@ -8,7 +8,7 @@
             </div>
             </div>
         </div>
         </div>
         <div class="content has-text-centered">
         <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>
         </div>
     </footer>
     </footer>
 </template>
 </template>
@@ -19,7 +19,6 @@
 
 
         data(){
         data(){
             return {
             return {
-                username : null,
             }
             }
         },
         },
 
 
@@ -27,10 +26,6 @@
             showButtons: true,
             showButtons: true,
         },
         },
 
 
-        created() {
-            this.username = localStorage.getItem('user')
-        },
-
         methods: {
         methods: {
 
 
             async logout(evt) {
             async logout(evt) {

+ 0 - 2
resources/js/views/Accounts.vue

@@ -140,7 +140,6 @@
                 selectedAccounts: [],
                 selectedAccounts: [],
                 ShowTwofaccountInModal : false,
                 ShowTwofaccountInModal : false,
                 search: '',
                 search: '',
-                username : null,
                 editMode: this.InitialEditMode,
                 editMode: this.InitialEditMode,
                 showQuickForm: false,
                 showQuickForm: false,
                 form: new Form({
                 form: new Form({
@@ -167,7 +166,6 @@
 
 
         created() {
         created() {
 
 
-            this.username = localStorage.getItem('user')
             this.fetchAccounts()
             this.fetchAccounts()
 
 
             // stop OTP generation on modal close
             // stop OTP generation on modal close

+ 0 - 2
resources/js/views/profile/Account.vue

@@ -43,8 +43,6 @@
                 .then(response => {
                 .then(response => {
 
 
                     this.success = response.data.message
                     this.success = response.data.message
-
-                    localStorage.setItem('user',response.data.username)
                 })
                 })
                 .catch(error => {
                 .catch(error => {
                     if( error.response.status === 400 ) {
                     if( error.response.status === 400 ) {