Theoretical handling of system task updates; stdout straight to logger
This commit is contained in:
@ -32,7 +32,7 @@ export function setSelectedTracks(keys = []) {
|
||||
};
|
||||
}
|
||||
|
||||
export function showContextMenu(data) {
|
||||
export function showContextMenu(data) {
|
||||
// Touchend
|
||||
if (data.e.changedTouches) {
|
||||
data.position_x = data.e.changedTouches[0].clientX;
|
||||
@ -165,7 +165,7 @@ export function createBrowserNotification(data) {
|
||||
};
|
||||
}
|
||||
|
||||
export function createNotification(data) {
|
||||
export function createNotification(data) {
|
||||
// Allow 'message' as an alias of our content
|
||||
if (data.message) {
|
||||
data.content = data.message;
|
||||
@ -228,12 +228,13 @@ export function stopLoading(key) {
|
||||
};
|
||||
}
|
||||
|
||||
export function startProcess(key, message, data = {}) {
|
||||
export function startProcess(key, message, data = {}, description = null) {
|
||||
return {
|
||||
type: 'START_PROCESS',
|
||||
key,
|
||||
message,
|
||||
data,
|
||||
description,
|
||||
};
|
||||
}
|
||||
|
||||
@ -244,12 +245,13 @@ export function resumeProcess(key, message, data = {}) {
|
||||
};
|
||||
}
|
||||
|
||||
export function updateProcess(key, message, data = {}) {
|
||||
export function updateProcess(key, message, data = {}, description = null) {
|
||||
return {
|
||||
type: 'UPDATE_PROCESS',
|
||||
key,
|
||||
message,
|
||||
data,
|
||||
description,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user