ソースを参照

重置构建状态时添加一个确认对话框作为一个缓冲

reghao 1 年間 前
コミット
651caf25a8
1 ファイル変更3 行追加1 行削除
  1. 3 1
      mgr/src/main/resources/templates/devops/app/bd/index.html

+ 3 - 1
mgr/src/main/resources/templates/devops/app/bd/index.html

@@ -49,7 +49,9 @@
                         </i>
                     </button>
                     <button class="layui-btn">
-                        <i class="fa fa-recycle"><a class="ajax-post" th:href="@{/api/app/bd/reset}">重置构建状态</a></i>
+                        <i class="fa fa-recycle">
+                            <a class="ajax-post" th:attr="data-msg='确定要重置状态'" th:href="@{/api/app/bd/reset}">重置构建状态</a>
+                        </i>
                     </button>
                 </div>
             </div>