2021-05-06 16:10:26 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="typescript">
|
|
|
|
import { bridgeCommand } from "lib/bridgecommand";
|
|
|
|
import * as tr from "lib/i18n";
|
|
|
|
|
|
|
|
import WithShortcut from "components/WithShortcut.svelte";
|
|
|
|
import LabelButton from "components/LabelButton.svelte";
|
|
|
|
</script>
|
|
|
|
|
2021-05-26 01:21:33 +02:00
|
|
|
<WithShortcut shortcut={"Control+Shift+P"} let:createShortcut let:shortcutLabel>
|
2021-05-06 16:10:26 +02:00
|
|
|
<LabelButton
|
2021-05-07 02:03:00 +02:00
|
|
|
tooltip={tr.browsingPreviewSelectedCard({ val: shortcutLabel })}
|
2021-05-26 01:21:33 +02:00
|
|
|
on:click={() => bridgeCommand("preview")}
|
2021-07-26 06:15:30 +02:00
|
|
|
on:mount={(event) => createShortcut(event.detail.button)}
|
2021-05-26 01:21:33 +02:00
|
|
|
>
|
2021-05-06 16:10:26 +02:00
|
|
|
{tr.actionsPreview()}
|
|
|
|
</LabelButton>
|
|
|
|
</WithShortcut>
|