mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
34 lines
690 B
Vue
34 lines
690 B
Vue
|
<template>
|
||
|
<div :class="$style.importSection">
|
||
|
<n8n-button
|
||
|
type="secondary"
|
||
|
:label="$locale.baseText('importParameter.label')"
|
||
|
size="mini"
|
||
|
@click="onImportCurlClicked"
|
||
|
/>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { IMPORT_CURL_MODAL_KEY } from '@/constants';
|
||
|
import mixins from 'vue-typed-mixins';
|
||
|
import { showMessage } from './mixins/showMessage';
|
||
|
|
||
|
export default mixins(showMessage).extend({
|
||
|
name: 'import-parameter',
|
||
|
methods: {
|
||
|
onImportCurlClicked() {
|
||
|
this.$store.dispatch('ui/openModal', IMPORT_CURL_MODAL_KEY);
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<style module lang="scss">
|
||
|
.importSection {
|
||
|
display: flex;
|
||
|
flex-direction: row-reverse;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
</style>
|