         for error in error.errors
           that.get("notify").error error.detail?.message
 
-    runAPIScan: ->
-      apiUrlFilters = @get "file.project.apiUrlFilters"
-      for url in [apiUrlFilters]
-        return @get("notify").error "Please enter any url filter" if !hasApiFilter url
-      @set "isApiScanEnabled", true
-      @send "apiScan"
-
     doNotRunAPIScan: ->
       @set "isApiScanEnabled", false
-      @send "apiScan"
+      @send "isApiScanEnabled"
       @send "closeModal"
 
     showURLFilter: ->
       @set "showURLFilter", true
       @set "showAPIScan", false
 
-    apiScan: ->
+    isApiScanEnabled: ->
       isApiScanEnabled = @get "isApiScanEnabled"
       project_id = @get "file.project.id"
       apiScanOptions = [ENV.host,ENV.namespace, ENV.endpoints.apiScanOptions, project_id].join '/'

          that.get("notify").error error.detail?.message

    openAPIScanModal: ->
      @set "showAPIScanModal", true

    closeModal: ->


    addUrlFilterAndStartScan: ->
      apiUrlFilters = @get "file.project.apiUrlFilters"
      @set "isApiScanEnabled", true
      isApiScanEnabled = @get "isApiScanEnabled"

      for url in [apiUrlFilters]
        return @get("notify").error "Please enter any url filter" if !hasApiFilter url
