Skip to content

Commit fff8993

Browse files
committed
fix: error deleting entry from My Websites window
This could not be tested locally due to another but only affecting self-hosted installations. This will be tested in staging in the meantime while the other bug is being fixed.
1 parent b1b725a commit fff8993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/src/UI/UIWindowMyWebsites.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function UIWindowMyWebsites(options){
8989
h+= `${html_encode(sites[i].root_dir.path)}`;
9090
h += `</p>`;
9191
h += `<p style="margin-bottom:0; margin-top: 20px; font-size: 13px;">`;
92-
h += `<span class="mywebsites-dis-dir" data-dir-uuid="${html_encode(sites[i].root_dir.id)}" data-site-uuid="${html_encode(sites[i].uid)}">`;
92+
h += `<span class="mywebsites-dis-dir" data-dir-uuid="${html_encode(sites[i].root_dir.id)}" data-site-subdomain="${html_encode(sites[i].subdomain)}" data-site-uuid="${html_encode(sites[i].uid)}">`;
9393
h += `<img style="width: 16px; margin-bottom: -2px; margin-right: 4px;" src="${html_encode(window.icons['plug.svg'])}">${i18n('disassociate_dir')}</span>`;
9494
h += `</p>`;
9595
}
@@ -183,7 +183,7 @@ $(document).on('click', '.mywebsites-dis-dir', function(e){
183183
// dir
184184
$(e.target).attr('data-dir-uuid'),
185185
// hostname
186-
$(e.target).attr('data-site-uuid'),
186+
$(e.target).attr('data-site-subdomain'),
187187
// success
188188
function (){
189189
$(`.mywebsites-no-dir-notice[data-site-uuid="${$(e.target).attr('data-site-uuid')}"]`).show();

0 commit comments

Comments
 (0)