mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
37 lines
733 B
Vue
37 lines
733 B
Vue
<script lang="ts" setup>
|
|
import { useI18n } from '@/composables/useI18n';
|
|
import { IMPORT_CURL_MODAL_KEY } from '@/constants';
|
|
import { useUIStore } from '@/stores/ui.store';
|
|
|
|
defineProps<{
|
|
isReadOnly?: boolean;
|
|
}>();
|
|
|
|
const uiStore = useUIStore();
|
|
const i18n = useI18n();
|
|
|
|
function onImportCurlClicked() {
|
|
uiStore.openModal(IMPORT_CURL_MODAL_KEY);
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div :class="$style.importSection">
|
|
<n8n-button
|
|
type="secondary"
|
|
:label="i18n.baseText('importCurlParameter.label')"
|
|
:disabled="isReadOnly"
|
|
size="mini"
|
|
@click="onImportCurlClicked"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<style module lang="scss">
|
|
.importSection {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
margin-top: var(--spacing-xs);
|
|
}
|
|
</style>
|