|
@@ -423,6 +423,9 @@ export const openHistory = () => {
|
|
const textareaElement = genRepoDialog.element.querySelector("textarea");
|
|
const textareaElement = genRepoDialog.element.querySelector("textarea");
|
|
textareaElement.focus();
|
|
textareaElement.focus();
|
|
const btnsElement = genRepoDialog.element.querySelectorAll(".b3-button");
|
|
const btnsElement = genRepoDialog.element.querySelectorAll(".b3-button");
|
|
|
|
+ genRepoDialog.bindInput(textareaElement, () => {
|
|
|
|
+ (btnsElement[1] as HTMLButtonElement).click();
|
|
|
|
+ });
|
|
btnsElement[0].addEventListener("click", () => {
|
|
btnsElement[0].addEventListener("click", () => {
|
|
genRepoDialog.destroy();
|
|
genRepoDialog.destroy();
|
|
});
|
|
});
|
|
@@ -475,6 +478,9 @@ export const openHistory = () => {
|
|
btnsElement[0].addEventListener("click", () => {
|
|
btnsElement[0].addEventListener("click", () => {
|
|
genTagDialog.destroy();
|
|
genTagDialog.destroy();
|
|
});
|
|
});
|
|
|
|
+ genTagDialog.bindInput(inputElement, () => {
|
|
|
|
+ (btnsElement[1] as HTMLButtonElement).click();
|
|
|
|
+ });
|
|
btnsElement[1].addEventListener("click", () => {
|
|
btnsElement[1].addEventListener("click", () => {
|
|
fetchPost("/api/repo/tagSnapshot", {
|
|
fetchPost("/api/repo/tagSnapshot", {
|
|
id: target.parentElement.getAttribute("data-id"),
|
|
id: target.parentElement.getAttribute("data-id"),
|