1
0
Fork 0
mirror of synced 2024-07-16 03:35:56 +12:00
budibase/packages/builder/src/components/settings/Link.svelte

48 lines
1 KiB
Svelte
Raw Normal View History

2020-06-19 19:14:03 +12:00
<script>
import Modal from "./Modal.svelte"
import { SettingsIcon } from "components/common/Icons/"
import { getContext } from "svelte"
import { isActive, goto, layout } from "@sveltech/routify"
// Handle create app modal
2020-09-30 22:24:16 +13:00
const { open, close } = getContext("simple-modal")
2020-06-19 19:14:03 +12:00
const showSettingsModal = () => {
open(
Modal,
{
name: "Placeholder App Name",
description: "This is a hardcoded description that needs to change",
},
{
closeOnEsc: true,
styleContent: { padding: 0 },
closeOnOuterClick: true,
}
)
}
</script>
<span class="topnavitemright settings" on:click={showSettingsModal}>
2020-06-19 19:14:03 +12:00
<SettingsIcon />
</span>
<style>
span:first-letter {
text-transform: capitalize;
}
.topnavitemright {
cursor: pointer;
color: var(--grey-7);
2020-06-19 19:14:03 +12:00
margin: 0px 20px 0px 0px;
padding-top: 4px;
font-weight: 500;
font-size: 1rem;
height: 100%;
display: flex;
flex: 1;
align-items: center;
box-sizing: border-box;
}
</style>