forked from sora-xor/polkaswap-exchange-web
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from soramitsu/adar-dev
Adar dev
- Loading branch information
Showing
16 changed files
with
686 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/modules/ADAR/components/RouteAssets/SelectReportFormatDialog.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template> | ||
<div class="select-report-fromat-dialog"> | ||
<dialog-base :visible.sync="isVisible" custom-class="dialog__select-report-fromat"> | ||
<div class="route-assets__page-header-title">Select report file format</div> | ||
<div class="route-assets__page-header-description"> | ||
{{ `You can either use the PDF or CSV format.` }} | ||
</div> | ||
<div class="buttons-container"> | ||
<s-button type="primary" class="s-typography-button--big browse-button" @click.stop="onPDFSelect"> | ||
{{ 'PDF' }} | ||
</s-button> | ||
<s-button type="primary" class="s-typography-button--big browse-button" @click.stop="onCSVSelect"> | ||
{{ 'CSV' }} | ||
</s-button> | ||
</div> | ||
</dialog-base> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Mixins } from 'vue-property-decorator'; | ||
import { mixins, components } from '@soramitsu/soraneo-wallet-web'; | ||
@Component({ | ||
components: { | ||
DialogBase: components.DialogBase, | ||
}, | ||
}) | ||
export default class SelectReportFormatDialog extends Mixins(mixins.TransactionMixin, mixins.DialogMixin) { | ||
onPDFSelect() { | ||
this.$emit('onPDFSelect'); | ||
this.$emit('update:visible', false); | ||
} | ||
onCSVSelect() { | ||
this.$emit('onCSVSelect'); | ||
this.$emit('update:visible', false); | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.browse-button { | ||
width: 100%; | ||
margin-right: 0; | ||
margin-left: 0; | ||
} | ||
.buttons-container { | ||
display: flex; | ||
// flex-direction: column; | ||
gap: 12px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.