diff options
| author | Henry Jameson <me@hjkos.com> | 2018-12-11 16:36:27 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-12-11 16:36:27 +0300 |
| commit | 83b85cd412245b8bfb65ff650b5543da4974ae46 (patch) | |
| tree | e62da2ac5fdb5c7b95ba5d9ddf6984c3fabdffd0 /src/components/export_import | |
| parent | c189a08dffd2373172d9fd34af5954af146c2f36 (diff) | |
better layouting for import-export, error display fixes
Diffstat (limited to 'src/components/export_import')
| -rw-r--r-- | src/components/export_import/export_import.vue | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/components/export_import/export_import.vue b/src/components/export_import/export_import.vue index 9914d54a..451a2668 100644 --- a/src/components/export_import/export_import.vue +++ b/src/components/export_import/export_import.vue @@ -1,8 +1,11 @@ <template> -<div class="import-export"> +<div class="import-export-container"> + <slot name="before"/> <button class="btn" @click="exportData">{{ exportLabel }}</button> <button class="btn" @click="importData">{{ importLabel }}</button> - <p v-if="importFailed" class="import-warning">{{ importFailedText }}</p> + <slot name="afterButtons"/> + <p v-if="importFailed" class="alert error">{{ importFailedText }}</p> + <slot name="afterError"/> </div> </template> @@ -73,3 +76,12 @@ export default { } } </script> + +<style lang="scss"> +.import-export-container { + display: flex; + flex-wrap: wrap; + align-items: baseline; + justify-content: center; +} +</style> |
