Browse Source

fix: 修改判断逻辑

qufenxi
alan 5 years ago
parent
commit
ed176fe135
  1. 2
      src/modules/pages/connection/connection.ts

2
src/modules/pages/connection/connection.ts

@ -27,7 +27,7 @@ export class Connection extends BI.Widget {
if (name) { if (name) {
const canEdit = connectionCanEdit(this.model.connectionSelectedOne); const canEdit = connectionCanEdit(this.model.connectionSelectedOne);
this.connectionTitleWidget.setText(`${name}${this.getSelectConnectionType()}`); this.connectionTitleWidget.setText(`${name}${this.getSelectConnectionType()}`);
this.connectionEditWidget.setVisible(!!name && canEdit); this.connectionEditWidget.setVisible(canEdit);
const hasRegistered = this.hasRegistered(); const hasRegistered = this.hasRegistered();
this.title.setVisible(hasRegistered); this.title.setVisible(hasRegistered);
if (!hasRegistered) { if (!hasRegistered) {

Loading…
Cancel
Save