소스 검색

fmt: Cleanup coderabbit issues from action details change

jamesread 4 달 전
부모
커밋
b1c74c9e04
2개의 변경된 파일과 1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 1
      frontend/resources/vue/ActionButton.vue
  2. 0 6
      service/internal/onfileindir/fileindir.go

+ 1 - 1
frontend/resources/vue/ActionButton.vue

@@ -201,7 +201,7 @@ function openActionDetails() {
 
 async function handleClick() {
   if (popupOnStart.value === 'history') {
-	router.push(`/action/${props.actionData.bindingId}`)
+	openActionDetails()
 	return
   }
   if (props.actionData.arguments && props.actionData.arguments.length > 0) {

+ 0 - 6
service/internal/onfileindir/fileindir.go

@@ -29,12 +29,6 @@ func WatchFilesInDirectory(cfg *config.Config, ex *executor.Executor) {
 					scheduleExec(act, cfg, ex, filename)
 				})
 			}(action, dirname)
-
-			go func(act *config.Action, dir string) {
-				filehelper.WatchDirectoryCreate(dir, func(filename string) {
-					scheduleExec(act, cfg, ex, filename)
-				})
-			}(action, dirname)
 		}
 	}
 }