mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
29 lines
550 B
Vue
29 lines
550 B
Vue
<script lang="ts" setup>
|
|
import { useI18n } from '@/composables/useI18n';
|
|
import { computed } from 'vue';
|
|
|
|
const props = defineProps<{
|
|
stopping?: boolean;
|
|
}>();
|
|
|
|
const i18n = useI18n();
|
|
|
|
const title = computed(() =>
|
|
props.stopping
|
|
? i18n.baseText('nodeView.stoppingCurrentExecution')
|
|
: i18n.baseText('nodeView.stopCurrentExecution'),
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<n8n-icon-button
|
|
icon="stop"
|
|
size="large"
|
|
class="stop-execution"
|
|
type="secondary"
|
|
:title="title"
|
|
:loading="stopping"
|
|
data-test-id="stop-execution-button"
|
|
/>
|
|
</template>
|