import UIWindow from './UIWindow.js'
// todo do this using uid rather than item_path, since item_path is way mroe expensive on the DB
async function UIWindowUploadProgress(options){
let h = '';
h += `
`;
h += `
`;
// spinner
h +=`
circle anim `;
// Progress report
h +=`
`;
// msg
h += `Preparing for upload... `;
h += `
`;
// progress
h += `
`;
// cancel
h += `
Cancel `;
h +=`
`;
h += `
`;
const el_window = await UIWindow({
title: `Upload`,
icon: window.icons[`app-icon-uploader.svg`],
uid: null,
is_dir: false,
body_content: h,
draggable_body: false,
has_head: false,
selectable_body: false,
draggable_body: true,
allow_context_menu: false,
is_resizable: false,
is_droppable: false,
init_center: true,
allow_native_ctxmenu: false,
allow_user_select: false,
window_class: 'window-upload-progress',
width: 450,
dominant: true,
window_css:{
height: 'initial',
},
body_css: {
padding: '22px',
width: 'initial',
'background-color': 'rgba(231, 238, 245, .95)',
'backdrop-filter': 'blur(3px)',
}
});
return el_window;
}
export default UIWindowUploadProgress