1
0

sniffing.html 1.1 KB

1234567891011121314151617181920212223242526272829
  1. {{define "form/sniffing"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <a-form-item>
  4. <span slot="label">
  5. {{ i18n "enabled" }}
  6. <a-tooltip>
  7. <template slot="title">
  8. <span>{{ i18n "pages.inbounds.noRecommendKeepDefault" }}</span>
  9. </template>
  10. <a-icon type="question-circle"></a-icon>
  11. </a-tooltip>
  12. </span>
  13. <a-switch v-model="inbound.sniffing.enabled"></a-switch>
  14. </a-form-item>
  15. <template v-if="inbound.sniffing.enabled">
  16. <a-form-item :wrapper-col="{span:24}">
  17. <a-checkbox-group v-model="inbound.sniffing.destOverride">
  18. <a-checkbox v-for="key,value in SNIFFING_OPTION" :value="key">[[ value ]]</a-checkbox>
  19. </a-checkbox-group>
  20. </a-form-item>
  21. <a-form-item label='Metadata Only'>
  22. <a-switch v-model="inbound.sniffing.metadataOnly"></a-switch>
  23. </a-form-item>
  24. <a-form-item label='Route Only'>
  25. <a-switch v-model="inbound.sniffing.routeOnly"></a-switch>
  26. </a-form-item>
  27. </template>
  28. </a-form>
  29. {{end}}