Skip to content

Commit

Permalink
feat(#1144): allow all labels deselection in weak supervision (#1326)
Browse files Browse the repository at this point in the history
closes #1144
  • Loading branch information
leiyre committed Mar 28, 2022
1 parent 158fcad commit 6e017d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -61,10 +61,7 @@ export default {
},
watch: {
async query(newValue) {
await this.updateCurrentRule({
query: newValue,
labels: (this.currentRule || {}).labels,
});
await this.dataset.setCurrentLabelingRule({ query: newValue });
},
},
computed: {
Expand Down Expand Up @@ -103,7 +100,7 @@ export default {
} else {
await this.dataset.setCurrentLabelingRule({
query,
labels: undefined,
labels: [],
});
}
this.saved = false;
Expand Down
Expand Up @@ -153,7 +153,7 @@ export default {
if (this.selectedLabels && queryWithLabelsIsStored) {
return `This query with ${
this.selectedLabels.length > 1 ? "these labels" : "this label"
} are already saved as rule`;
} is already saved as rule`;
}
},
coveredRecords() {
Expand Down

0 comments on commit 6e017d4

Please sign in to comment.