ywana-core8 0.0.996 → 0.0.998
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/task.js +2 -1
- package/src/widgets/index.js +1 -0
package/package.json
CHANGED
package/src/incubator/task.js
CHANGED
@@ -166,7 +166,7 @@ export const TaskProgress = (props) => {
|
|
166
166
|
*/
|
167
167
|
export const TaskMonitor = (props) => {
|
168
168
|
|
169
|
-
const { title = "Task Monitor", filters = {}, editors, frequency = 5000 } = props
|
169
|
+
const { title = "Task Monitor", filters = {}, editors, frequency = 5000, onRefresh } = props
|
170
170
|
const context = useContext(TaskContext)
|
171
171
|
const [tasks = [], setTasks] = useState([])
|
172
172
|
const [minimized, setMinimized] = useState(false)
|
@@ -182,6 +182,7 @@ export const TaskMonitor = (props) => {
|
|
182
182
|
async function refresh() {
|
183
183
|
const tasks = await context.tasks(filters)
|
184
184
|
setTasks(tasks)
|
185
|
+
if (onRefresh) onRefresh(tasks)
|
185
186
|
}
|
186
187
|
|
187
188
|
async function remove(task) {
|