|
|
|
@ -73,11 +73,12 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
action: () => { |
|
|
|
|
const newName = this.nameEditor.getValue(); |
|
|
|
|
this.store.changeName(name, newName).then(re => { |
|
|
|
|
this.store.setIsEdit(false, name); |
|
|
|
|
if (re.errorCode) { |
|
|
|
|
BI.Msg.toast(BI.i18nText(re.errorMsg), { |
|
|
|
|
level: 'error', |
|
|
|
|
}); |
|
|
|
|
this.nameEditor.focus(); |
|
|
|
|
this.nameLabel.setText(name); |
|
|
|
|
} else { |
|
|
|
|
this.nameLabel.setText(newName); |
|
|
|
|
} |
|
|
|
|