Răsfoiți Sursa

bind method

WESEEK Kaito 6 ani în urmă
părinte
comite
a05bc9c61a

+ 2 - 7
src/client/js/components/Admin/Users/ManageExternalAccount.jsx

@@ -15,6 +15,7 @@ class ManageExternalAccount extends React.Component {
     super(props);
     super(props);
     this.xss = window.xss;
     this.xss = window.xss;
     this.handlePage = this.handlePage.bind(this);
     this.handlePage = this.handlePage.bind(this);
+    this.removeExtenalAccount = this.removeExtenalAccount.bind(this);
   }
   }
 
 
   async handlePage(selectedPage) {
   async handlePage(selectedPage) {
@@ -26,12 +27,6 @@ class ManageExternalAccount extends React.Component {
     }
     }
   }
   }
 
 
-  async checkPassword(password) {
-    if (password != null) {
-      return;
-    }
-  }
-
   // remove external-account
   // remove external-account
   async removeExtenalAccount(externalAccountId) {
   async removeExtenalAccount(externalAccountId) {
     try {
     try {
@@ -62,7 +57,7 @@ class ManageExternalAccount extends React.Component {
             <tr>
             <tr>
               <th width="120px">{ t('user_management.authentication_provider') }</th>
               <th width="120px">{ t('user_management.authentication_provider') }</th>
               <th><code>accountId</code></th>
               <th><code>accountId</code></th>
-              <th>{ t('user_management.related_username')}</th>
+              <th>{ t('user_management.related_username', 'username') }</th>
               <th>
               <th>
                 { t('user_management.password_setting') }
                 { t('user_management.password_setting') }
                 <div
                 <div