ActionGroupLimitsLabel.vue 673 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <span
  3. v-if="showLimits"
  4. class="action-group-limit"
  5. >
  6. {{ t('logs.action-group-limits', { concurrent: maxConcurrent, queueSize }) }}
  7. </span>
  8. </template>
  9. <script setup>
  10. import { computed } from 'vue'
  11. import { useI18n } from 'vue-i18n'
  12. const props = defineProps({
  13. maxConcurrent: {
  14. type: Number,
  15. default: 0
  16. },
  17. queueSize: {
  18. type: Number,
  19. default: 0
  20. }
  21. })
  22. const { t } = useI18n()
  23. const showLimits = computed(() => props.maxConcurrent > 0 && props.queueSize > 0)
  24. </script>
  25. <style scoped>
  26. .action-group-limit {
  27. white-space: nowrap;
  28. font-weight: 500;
  29. font-size: smaller;
  30. color: var(--text-secondary, #666);
  31. }
  32. </style>