function UserTableController() {
  this.isPopupShow = false;
  this.columnList = ['Avatar', 'Name', 'Gender', 'Nat'];

  this.openPopup = function () {
    if (this.isPopupShow) {
      this.isPopupShow = false;
    } else {
      this.isPopupShow = true;
    }

    console.log(this.isPopupShow);
  }
}

@@ -153,148 +153,44 @@
     
-if (this.isPopupShow) %7B%0A      this.isPopupShow = false;%0A    %7D else %7B%0A      this.isPopupShow = true;%0A    %7D%0A%0A    console.log(this.isPopupShow)
+this.isPopupShow = !this.isPopupShow
 ;%0A  

Refactor openPopup method