Replace event dispatcher with a callback in filemanager
This commit is contained in:
@@ -3,7 +3,7 @@ import { run } from 'svelte/legacy';
|
||||
import Chart from "util/Chart.svelte";
|
||||
import { formatDataVolume, formatDate, formatThousands } from "util/Formatting";
|
||||
import Modal from "util/Modal.svelte";
|
||||
import { fs_path_url, fs_share_hotlink_url, fs_share_url, fs_timeseries, type FSNode } from "lib/FilesystemAPI";
|
||||
import { fs_path_url, fs_share_hotlink_url, fs_share_url, fs_timeseries, type FSNode } from "lib/FilesystemAPI.svelte";
|
||||
import { color_by_name } from "util/Util";
|
||||
import { tick } from "svelte";
|
||||
import CopyButton from "layout/CopyButton.svelte";
|
||||
@@ -86,7 +86,7 @@ let update_chart = async (base: FSNode, timespan: number, interval: number) => {
|
||||
display: true,
|
||||
position: "right",
|
||||
ticks: {
|
||||
callback: function (value, index, values) {
|
||||
callback: function (value: number, index, values) {
|
||||
return formatDataVolume(value, 3);
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user