Compare commits

..

4 Commits

Author SHA1 Message Date
e4dd6f8bcf Add .gitignore 2021-07-17 23:03:05 +03:00
9954d26afc Prune imports 2021-07-17 23:02:50 +03:00
a727f59503 PayFlow: correct modal closure (Escape / click outside) 2021-07-17 22:55:39 +03:00
4cb14b6b7f Prune imports 2021-07-17 22:55:04 +03:00
3 changed files with 14 additions and 31 deletions

4
.gitignore vendored Normal file

@ -0,0 +1,4 @@
/node_modules/
/public/build/
.DS_Store

@ -2,19 +2,6 @@
export let name;
import { Styles,
Container,
Row,
Col,
Card, CardBody, CardHeader, CardTitle,
Button,
Tooltip,
Icon,
InputGroup,
Nav, NavItem, NavLink,
Modal, ModalHeader, ModalBody, ModalFooter,
} from 'sveltestrap';
import SiteHead from './SiteHead.svelte';
import SiteCard from './SiteCard.svelte';
import SiteDeck from './SiteDeck.svelte';
@ -229,5 +216,3 @@
</SiteDeck>
<PayFlow bind:lnurl={getInvoiceFor}/>
<!-- <Styles/> -->

@ -1,17 +1,7 @@
<script>
import { Styles,
Container,
Row,
Col,
Card, CardBody, CardHeader, CardTitle,
Button,
Tooltip,
Icon,
InputGroup,
Input,
Nav, NavItem, NavLink,
Modal, ModalHeader, ModalBody, ModalFooter,
} from 'sveltestrap';
import {
Modal, ModalHeader, ModalBody, ModalFooter,
} from 'sveltestrap';
import InputMask from './InputMask.svelte';
import QR from './QR.svelte';
@ -88,9 +78,14 @@
}
const canShare = !!navigator.share;
const dismiss = () => {
lnurl=undefined;
isOpen=false
}
</script>
<Modal {isOpen} size='lg'>
<Modal {isOpen} toggle={dismiss} size='lg'>
<ModalHeader>BOLT11 invoice: {stage}</ModalHeader>
<ModalBody>
{#if confirmAmount}
@ -163,8 +158,7 @@
{/if}
<button
class="btn btn-outline-primary"
type="button" on:click="{()=>{isOpen=false; lnurl = null}}">Cancel</button>
type="button" on:click="{dismiss}">Cancel</button>
</div>
</ModalFooter>
</Modal>