diff --git a/src/gui/src/UI/UIWindowShare.js b/src/gui/src/UI/UIWindowShare.js index 2923bb34..e4063626 100644 --- a/src/gui/src/UI/UIWindowShare.js +++ b/src/gui/src/UI/UIWindowShare.js @@ -27,7 +27,6 @@ async function UIWindowShare(items, recipient){ //------------------------------------------------ // Icons //------------------------------------------------ - h += `
`; // 1 item shared if(items.length === 1) @@ -61,7 +60,7 @@ async function UIWindowShare(items, recipient){ h += `
`; // ------------------------------------------------ - // Name + // Item Name // ------------------------------------------------ h += `

`; h += `Share ${html_encode(items[0].name)}`; @@ -69,7 +68,9 @@ async function UIWindowShare(items, recipient){ h += ` and ${items.length - 1} other item${items.length > 2 ? 's' : ''}`; h += `

`; - // form + // ------------------------------------------------ + // Recipient + // ------------------------------------------------ h += `
`; // Error msg h += `
`; @@ -85,7 +86,9 @@ async function UIWindowShare(items, recipient){ h += ``; h += `
`; - //recipients + // ------------------------------------------------ + // Already Shared With + // ------------------------------------------------ h += `

People with access

`; h += `
`; h += `
`; @@ -124,6 +127,7 @@ async function UIWindowShare(items, recipient){ let contacts = []; + // get contacts puter.kv.get('contacts').then((kv_contacts) => { if(kv_contacts){ try{ @@ -139,7 +143,8 @@ async function UIWindowShare(items, recipient){ // /stat let perms = []; - let printed_users = []; + let printed_users = []; + for(let i=0; i