encryption_keys; sirve para comprobar rapidamente que la rotacion diaria esta llegando a la base de datos.
+ Usuario: @CurrentUsername
-Estado: @SessionStatusText
-- Ultima descarga registrada: - @(UserInboxState.LastDownloadedReportMomentUtc is null - ? "Sin descargas previas" - : UserInboxState.LastDownloadedReportMomentUtc.Value.ToLocalTime().ToString("dd/MM/yyyy HH:mm")) -
-- La base de datos lleva la cuenta de lo que ya ha descargado este usuario, de lo que han descargado otros - y de si el expediente ya esta creado en Gestiona. -
- -| # | Canal | Presentacion | -Ultima actualizacion | +Actividad ciudadano | +Actividad OAAF | Estado | +Acceso | Seguimiento | -Detalle | -Detalle | + @if (!CanUseGlobalLeaks) { -|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + | |||||||||||||||||
| Renueva la sesion de GlobalLeaks con un 2FA valido para cargar la bandeja. | |||||||||||||||||
| Cargando denuncias... | +|||||||||||||||||
| Cargando denuncias... | |||||||||||||||||
| No hay denuncias con los filtros actuales. | +No hay denuncias con los filtros actuales. | ToggleSelection(report.Id, args))" /> + disabled="@(!CanUseReport(report) || ImportBusy)" + title="@GetReportActionBlockReason(report)" + @onchange="@((ChangeEventArgs args) => ToggleSelection(report, args))" /> | -#@(report.Progressive ?? 0) | -@(report.ContextName ?? report.ContextId ?? "-") | +#@(report.Progressive ?? 0) | +@(report.ContextName ?? report.ContextId ?? "-") | @FormatDate(report.CreationDate) | -@FormatDate(report.UpdateDate) | +@FormatCitizenActivity(report) | +@FormatReceiverActivity(report) | @GetStatusLabel(report) + + | ++ + @GetAccessLabel(report) | -
-
- @GetTrackingLabel(report)
-
- @if (!string.IsNullOrWhiteSpace(report.TrackingNote))
- {
- @report.TrackingNote
- }
+ | + @GetTrackingLabel(report) | -+ |
|
@@ -303,8 +386,6 @@
-
-
@if (DetailModalVisible)
@@ -451,7 +532,7 @@
private bool CanUseGlobalLeaks => SessionInfo?.HasActiveSession == true;
private bool RenewPrepared => !string.IsNullOrWhiteSpace(RenewPendingLoginId);
- private int SelectedReportsCount => SelectedIds.Count;
+ private int SelectedReportsCount => Reports.Count(report => SelectedIds.Contains(report.Id) && CanUseReport(report));
private bool CanImportSelected => CanUseGlobalLeaks && SelectedReportsCount > 0 && !ImportBusy;
private string SessionStatusText => SessionInfo is null
? "Sin credenciales guardadas"
@@ -464,7 +545,7 @@
private string SessionRenewBusyText => RenewPrepared
? "Validando 2FA..."
: "Preparando...";
- private string SelectAllLabel => VisibleReports.Count > 0 && VisibleReports.All(report => SelectedIds.Contains(report.Id))
+ private string SelectAllLabel => VisibleReports.Any(CanUseReport) && VisibleReports.Where(CanUseReport).All(report => SelectedIds.Contains(report.Id))
? "Deseleccionar todas"
: "Seleccionar todas";
@@ -631,9 +712,16 @@
{
var selectedReports = Reports
.Where(report => SelectedIds.Contains(report.Id))
+ .Where(CanUseReport)
.OrderBy(report => report.Progressive ?? 0)
.ToList();
+ if (selectedReports.Count == 0)
+ {
+ SetStatus("No hay denuncias accesibles seleccionadas para importar.", "alert-warning");
+ return;
+ }
+
using var busy = Busy.Show(
"Importando denuncias",
$"Descargando y procesando {selectedReports.Count} denuncia(s) desde GlobalLeaks.",
@@ -685,6 +773,20 @@
{
SetStatus($"Se han importado {importedCount} denuncia(s) desde GlobalLeaks.", "alert-success");
}
+ else if (errors.Count == 0 && importedCount == 0)
+ {
+ var parts = new List|
| Nombre | -Tamaño (bytes) | +Tamaño (bytes) | Ver | ||||||||||||||