add share modal

This commit is contained in:
Tixie
2020-02-22 03:50:37 +01:00
parent 415c582c00
commit e42fd4fe6b
11 changed files with 242 additions and 12 deletions

View File

@ -1,3 +1,16 @@
<button class="contextMenu__item">Share the track</button>
<button class="contextMenu__item" on:click={() => openShare()}>Share this song</button>
<a class="contextMenu__item" href="" target="_blank">Link to toot</a>
<a class="contextMenu__item" href="" target="_blank">Link to media</a>
<a class="contextMenu__item" href="" target="_blank">Link to media</a>
<script>
import { onMount, getContext } from 'svelte';
import MicroModal from 'micromodal';
const closeMenu = getContext('closeMenu')
function openShare () {
MicroModal.show('share-modal')
closeMenu()
}
</script>