victor HF staff commited on
Commit
7f00343
1 Parent(s): e1cf22b
src/lib/components/Playground/Playground.svelte CHANGED
@@ -206,8 +206,9 @@
206
  >
207
  <button
208
  on:click={submit}
 
209
  type="button"
210
- class="flex h-[42px] w-24 items-center justify-center rounded-lg bg-black px-5 py-2.5 text-sm font-medium text-white hover:bg-gray-900 focus:outline-none focus:ring-4 focus:ring-gray-300 dark:border-gray-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-gray-700"
211
  >
212
  {#if loading}
213
  <div class="flex flex-none items-center gap-[3px]">
 
206
  >
207
  <button
208
  on:click={submit}
209
+ disabled={viewCode || loading}
210
  type="button"
211
+ class="flex h-[42px] w-24 items-center justify-center rounded-lg bg-black px-5 py-2.5 text-sm font-medium text-white hover:bg-gray-900 focus:outline-none focus:ring-4 focus:ring-gray-300 disabled:opacity-50 dark:border-gray-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-gray-700"
212
  >
213
  {#if loading}
214
  <div class="flex flex-none items-center gap-[3px]">