+ return
- {this.data.raw.label}
+
+ {this.data.raw.label}
+ {this.data.condition &&
+ {this.data.condition} }
+
;
}
protected toggle = () => this.breakpoints.toggleExceptionBreakpoint(this.data.raw.filter);
+ async editCondition(): Promise
{
+ const inputDialog = new SingleTextInputDialog({
+ title: this.data.raw.label,
+ placeholder: this.data.raw.conditionDescription,
+ initialValue: this.data.condition
+ });
+ let condition = await inputDialog.open();
+ if (condition === undefined) {
+ return;
+ }
+ if (condition === '') {
+ condition = undefined;
+ }
+ if (condition !== this.data.condition) {
+ this.breakpoints.updateExceptionBreakpoint(this.data.raw.filter, { condition });
+ }
+ }
}