Skip to content

Commit

Permalink
update openai tooltip display (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
QSummerY committed Jul 18, 2024
1 parent 020683e commit ece8c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/templates/sqlquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h4 class="modal-title text-danger">收藏语句</h4>
</select>
<input id="generateDesc" class="form-control" style="display: none" placeholder="AI 查询描述" />
<input id="btn-generatesql" type="button" class="btn btn-info" style="display: none" value="生成SQL"/>
<button type="button" class="btn" data-toggle="tooltip" title="仅此操作会与 AI 交互, 收集数据库类型、表结构以及输入框信息, 交给 AI 生成 SQL 并置于下面的语句框中" >
<button id="btn-openaiTooltip" type="button" class="btn" style="display: none" data-toggle="tooltip" title="仅此操作会与 AI 交互, 收集数据库类型、表结构以及输入框信息, 交给 AI 生成 SQL 并置于下面的语句框中" >
<span class="fa fa-question-circle" />
</button>
</div>
Expand Down Expand Up @@ -514,6 +514,7 @@ <h4 class="modal-title text-danger">收藏语句</h4>
if (data["data"]) {
$("#generateDesc").show()
$("#btn-generatesql").show()
$("#btn-openaiTooltip").show()
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
Expand Down

0 comments on commit ece8c33

Please sign in to comment.