mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
45 lines
838 B
Vue
45 lines
838 B
Vue
<template>
|
|
<div :class="$style.importSection">
|
|
<n8n-button
|
|
type="secondary"
|
|
:label="$locale.baseText('importParameter.label')"
|
|
:disabled="isReadOnly"
|
|
size="mini"
|
|
@click="onImportCurlClicked"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { IMPORT_CURL_MODAL_KEY } from '@/constants';
|
|
import { useUIStore } from '@/stores/ui.store';
|
|
import { mapStores } from 'pinia';
|
|
|
|
export default defineComponent({
|
|
name: 'ImportParameter',
|
|
props: {
|
|
isReadOnly: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
computed: {
|
|
...mapStores(useUIStore),
|
|
},
|
|
methods: {
|
|
onImportCurlClicked() {
|
|
this.uiStore.openModal(IMPORT_CURL_MODAL_KEY);
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style module lang="scss">
|
|
.importSection {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
margin-top: 10px;
|
|
}
|
|
</style>
|