       @get("ajax").post apiScanOptions, data: data
       .then (data)->
         that.get("notify").success "Starting the scan"
-        that.send "dynamicScan"
-        that.send "closeModal"
       .catch (error) ->
         for error in error.errors
           that.get("notify").error error.detail?.message

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

    openAPIScanModal: ->
      @set "showAPIScanModal", true

    closeModal: ->

        for error in error.errors
          that.get("notify").error error.detail?.message

    doNotRunAPIScan: ->
      @set "isApiScanEnabled", false
      @send "isApiScanEnabled"
      @send "closeModal"

    showURLFilter: ->
      @set "showURLFilter", true
      @set "showAPIScan", false

    isApiScanEnabled: ->
      isApiScanEnabled = @get "isApiScanEnabled"
      project_id = @get "file.project.id"
      apiScanOptions = [ENV.host,ENV.namespace, ENV.endpoints.apiScanOptions, project_id].join '/'
