소스 검색

fix account actions view

pull/68/head
Jonathan Cobb 4 년 전
부모
커밋
2175106e51
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. +8
    -6
      src/_pages/main/account/MyAccount.vue

+ 8
- 6
src/_pages/main/account/MyAccount.vue 파일 보기

@@ -69,13 +69,15 @@ export default {
computed: {
...mapState('system', ['messages', 'configs']),
manage_account_actions: function () {
const account_actions = this.configs.bubbleNode === true ? 'manage_account_node_actions' : 'manage_account_sage_actions';
const actions = this.messages[account_actions].split(',');
if (this.currentUser.admin && this.currentUser.firstAdmin) {
const delete_index = actions.indexOf('delete');
return delete_index === -1 ? actions : actions.splice(delete_index,1);
if (this.messages) {
const account_actions = this.configs.bubbleNode === true ? 'manage_account_node_actions' : 'manage_account_sage_actions';
const actions = this.messages[account_actions].split(',');
if (this.currentUser.admin && this.currentUser.firstAdmin) {
const delete_index = actions.indexOf('delete');
if (delete_index !== -1) actions.splice(delete_index, 1);
}
return actions;
}
return actions;
}
},
methods: {


불러오는 중...
취소
저장