ManageOllamaModal.svelte 993 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <script lang="ts">
  2. import { toast } from 'svelte-sonner';
  3. import { getContext, onMount } from 'svelte';
  4. const i18n = getContext('i18n');
  5. import Modal from '$lib/components/common/Modal.svelte';
  6. import ManageOllama from '../Models/Manage/ManageOllama.svelte';
  7. import XMark from '$lib/components/icons/XMark.svelte';
  8. export let show = false;
  9. export let urlIdx: number | null = null;
  10. </script>
  11. <Modal size="sm" bind:show>
  12. <div>
  13. <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
  14. <div
  15. class="flex w-full justify-between items-center text-lg font-medium self-center font-primary"
  16. >
  17. <div class=" shrink-0">
  18. {$i18n.t('Manage Ollama')}
  19. </div>
  20. </div>
  21. <button
  22. class="self-center"
  23. on:click={() => {
  24. show = false;
  25. }}
  26. >
  27. <XMark className={'size-5'} />
  28. </button>
  29. </div>
  30. <div class="flex flex-col md:flex-row w-full px-5 pb-4 md:space-x-4 dark:text-gray-200">
  31. <ManageOllama {urlIdx} />
  32. </div>
  33. </div>
  34. </Modal>