Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit daad959

Browse files
committed
DEV: lint
1 parent 26b67c4 commit daad959

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

assets/javascripts/discourse/components/ai-tool-editor.gjs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,32 +76,6 @@ export default class AiToolEditor extends Component {
7676
}
7777
}
7878

79-
_checkToolNameDebounced() {
80-
discourseDebounce(this, this._checkToolName, 500);
81-
}
82-
83-
_checkToolName() {
84-
if (isEmpty(this.editingModel.tool_name)) {
85-
return;
86-
}
87-
88-
AiTool.checkName(this.editingModel.tool_name)
89-
.then((response) => {
90-
if (response.available) {
91-
this.disableSave = false;
92-
this.nameValidation = {
93-
ok: true,
94-
reason: I18n.t("discourse_ai.tools.new.tool_name.available"),
95-
};
96-
} else {
97-
this.disableSave = true;
98-
let reason = response.errors.join(" ");
99-
this.validationName = this._failedInputValidation(reason);
100-
}
101-
})
102-
.catch(popupAjaxError);
103-
}
104-
10579
@action
10680
async save() {
10781
this.isSaving = true;

0 commit comments

Comments
 (0)