Merge pull request 'Se quito el boton de consulta DOF, ademas de utilizar el boton de actualizar' (#430) from fix/tipo-cambio into development
Reviewed-on: ADUANASOFT/anexo76#430
This commit is contained in:
@@ -175,6 +175,7 @@
|
|||||||
|
|
||||||
<Dialog.Content
|
<Dialog.Content
|
||||||
class="fixed top-[50%] left-[50%] z-[10000] w-full max-w-[480px] translate-x-[-50%] translate-y-[-50%] overflow-hidden border-0 bg-transparent p-0 shadow-2xl sm:rounded-xl"
|
class="fixed top-[50%] left-[50%] z-[10000] w-full max-w-[480px] translate-x-[-50%] translate-y-[-50%] overflow-hidden border-0 bg-transparent p-0 shadow-2xl sm:rounded-xl"
|
||||||
|
onInteractOutside={(e) => e.preventDefault()}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex h-full flex-col overflow-hidden rounded-xl border border-border bg-background"
|
class="flex h-full flex-col overflow-hidden rounded-xl border border-border bg-background"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
import * as Card from '$lib/components/ui/card';
|
import * as Card from '$lib/components/ui/card';
|
||||||
import { Button } from '$lib/components/ui/button';
|
import { Button } from '$lib/components/ui/button';
|
||||||
import { Input } from '$lib/components/ui/input';
|
import { Input } from '$lib/components/ui/input';
|
||||||
import { Pencil, Plus, RefreshCw, Trash2, Search, Globe } from 'lucide-svelte';
|
import { Pencil, Plus, RefreshCw, Trash2 } from 'lucide-svelte';
|
||||||
import { useShortcuts } from '$lib/hooks/use-shortcuts';
|
import { useShortcuts } from '$lib/hooks/use-shortcuts';
|
||||||
import { obtenerAtajosListaTiposCambio } from '$lib/config/shortcuts/dashboard/general_catalogs/exchange_rate/list';
|
import { obtenerAtajosListaTiposCambio } from '$lib/config/shortcuts/dashboard/general_catalogs/exchange_rate/list';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
@@ -163,10 +163,6 @@
|
|||||||
reloadData();
|
reloadData();
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchDOF() {
|
|
||||||
// Implementación pendiente
|
|
||||||
}
|
|
||||||
|
|
||||||
const columns = $derived(createColumns(handleSuccess, { canEdit, canDelete }));
|
const columns = $derived(createColumns(handleSuccess, { canEdit, canDelete }));
|
||||||
function handleRowClick(row: ExchangeRate) {
|
function handleRowClick(row: ExchangeRate) {
|
||||||
const id = row.id;
|
const id = row.id;
|
||||||
@@ -216,12 +212,8 @@
|
|||||||
<p class="text-muted-foreground">Gestión del catálogo de tipos de cambio oficiales y personalizados</p>
|
<p class="text-muted-foreground">Gestión del catálogo de tipos de cambio oficiales y personalizados</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<Button variant="outline" size="sm" class="h-9" onclick={fetchDOF}>
|
<Button variant="outline" size="sm" class="h-9" onclick={reloadData} disabled={loading}>
|
||||||
<Globe class="mr-2 h-4 w-4" />
|
<RefreshCw class="mr-2 h-4 w-4 {loading ? 'animate-spin' : ''}" />
|
||||||
Consultar DOF
|
|
||||||
</Button>
|
|
||||||
<Button variant="outline" size="sm" class="h-9" onclick={reloadData}>
|
|
||||||
<RefreshCw class="mr-2 h-4 w-4" />
|
|
||||||
Actualizar
|
Actualizar
|
||||||
</Button>
|
</Button>
|
||||||
{#if !isError && canCreate}
|
{#if !isError && canCreate}
|
||||||
|
|||||||
Reference in New Issue
Block a user