API bug fixes. Clean up. New util functions. Highlight times for newer files.
This commit is contained in:
@@ -316,7 +316,7 @@ onMount(() => {
|
||||
api_cfg: $ae_api,
|
||||
event_file_id: event_file_obj.event_file_id_random,
|
||||
data_kv: event_file_data,
|
||||
log_lvl: 3
|
||||
log_lvl: 0
|
||||
})
|
||||
.then (function (update_results) {
|
||||
console.log(`Update results:`, update_results);
|
||||
@@ -517,7 +517,12 @@ onMount(() => {
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span>
|
||||
<!-- If this file was uploaded (created) within the last 15 minutes we want to highlight it in blue. -->
|
||||
<span
|
||||
class:bg-yellow-200={ae_util.is_datetime_recent({datetime: event_file_obj?.created_on, minutes: 30})}
|
||||
class:bg-green-200={ae_util.is_datetime_recent({datetime: event_file_obj?.created_on, minutes: 240})}
|
||||
class:bg-blue-200={ae_util.is_datetime_recent({datetime: event_file_obj?.created_on, minutes: 2880})}
|
||||
>
|
||||
{#if display_mode == 'default'}
|
||||
<!-- <span class="fas fa-cloud-upload-alt mx-1"></span> -->
|
||||
<!-- Uploaded: -->
|
||||
|
||||
Reference in New Issue
Block a user