~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
14 lines · 632 B Raw History
<script lang="ts">
  import { m } from '#lib/paraglide/messages.js';
  import Dialog from '#lib/molecules/Dialog.svelte';
  /** What an app asks for, word for word (`requested`, its scopes), behind a quiet button: for whoever wants the detail. */
  let { requested }: { requested: { scope: string }[] } = $props();
</script>

<button class="quiet small" type="button" popovertarget="asked"
  >{m.authorize_request_details()}</button
>
<Dialog id="asked" title={m.authorize_request_details()}>
  <p class="mute">{m.authorize_request_scopes()}</p>
  <pre class="well scopes">{requested.map((s) => s.scope).join('\n')}</pre>
</Dialog>