api-client/components/http/ImportCurl.vue

42 lines
897 B
Vue
Raw Normal View History

<template>
<SmartModal v-if="show" @close="hideModal">
<template #header>
<h3 class="heading">{{ $t("import_curl") }}</h3>
<div>
2021-07-03 13:14:58 +00:00
<ButtonSecondary icon="close" @click.native="hideModal" />
2020-12-11 10:29:03 +00:00
</div>
</template>
<template #body>
2021-05-18 09:27:29 +00:00
<textarea
id="import-curl"
class="textarea"
2021-05-18 09:27:29 +00:00
autofocus
rows="8"
:placeholder="$t('enter_curl')"
></textarea>
</template>
<template #footer>
<span>
2021-07-03 13:14:58 +00:00
<ButtonPrimary :label="$t('import')" @click.native="handleImport" />
2021-07-09 17:19:45 +00:00
<ButtonSecondary :label="$t('cancel')" @click.native="hideModal" />
</span>
</template>
</SmartModal>
</template>
<script>
export default {
props: {
show: Boolean,
},
methods: {
hideModal() {
this.$emit("hide-modal")
},
handleImport() {
this.$emit("handle-import")
},
},
}
</script>