提交 7509a010 编写于 作者: S Sandeep Somavarapu

Fix #103941

上级 4ecf3f8f
......@@ -2167,13 +2167,15 @@ export class ChangeSortAction extends Action {
this.query = Query.parse('');
this.enabled = false;
this.checked = false;
this._register(onSearchChange(this.onSearchChange, this));
}
private onSearchChange(value: string): void {
const query = Query.parse(value);
this.query = new Query(query.value, this.sortBy || query.sortBy, query.groupBy);
this.enabled = !!value && this.query.isValid() && !this.query.equals(query);
this.enabled = !!value && this.query.isValid();
this.checked = this.enabled && this.query.equals(query);
}
run(): Promise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册