Now with the ability to log activities. Yay...
This commit is contained in:
@@ -9,6 +9,7 @@ import type { key_val } from '$lib/ae_stores';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import { api } from '$lib/api';
|
||||
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { core_func } from '$lib/ae_core_functions';
|
||||
import { events_loc, events_sess, events_slct, events_trigger } from '$lib/ae_events_stores';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
|
||||
@@ -321,6 +322,25 @@ async function handle_open_file() {
|
||||
$events_sess.launcher.controller_cmd = `ae_open:event_file=${event_file_obj.event_file_id_random}`;
|
||||
$events_sess.launcher.controller_trigger_send = true;
|
||||
// tick();
|
||||
|
||||
|
||||
core_func.create_ae_obj__activity_log({
|
||||
api_cfg: $ae_api,
|
||||
account_id: $ae_loc.account_id,
|
||||
data_kv: {
|
||||
name: `Open Poster: ${event_file_obj.filename}`,
|
||||
object_type: 'event_file',
|
||||
object_id_random: event_file_obj.event_file_id_random,
|
||||
action: 'open_poster_w_controller',
|
||||
meta_json: {
|
||||
event_file_id: event_file_obj.event_file_id_random,
|
||||
filename: event_file_obj.filename,
|
||||
extension: event_file_obj.extension,
|
||||
modal_title: modal_title
|
||||
}
|
||||
},
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
}
|
||||
}}
|
||||
class="
|
||||
|
||||
Reference in New Issue
Block a user