Skip to content

Commit 9d7987f

Browse files
committed
fix: disabled sortable on sharing section in the sidebar
1 parent 665471f commit 9d7987f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/src/UI/UIWindow.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ async function UIWindow(options) {
10971097
// don't show current user's folder!
10981098
if(shared_user.name === window.user.username)
10991099
continue;
1100-
ht += `<div class="window-sidebar-item disable-user-select ${options.path === shared_user.path ? 'window-sidebar-item-active' : ''}"
1100+
ht += `<div class="window-sidebar-item not-sortable disable-user-select ${options.path === shared_user.path ? 'window-sidebar-item-active' : ''}"
11011101
data-path="${shared_user.path}"
11021102
data-sharing-username="${html_encode(shared_user.name)}"
11031103
title="${html_encode(shared_user.name)}"
@@ -2413,7 +2413,7 @@ async function UIWindow(options) {
24132413
const $sidebar = $(el_window).find('.window-sidebar');
24142414

24152415
$sidebar.sortable({
2416-
items: '.window-sidebar-item:not(.window-sidebar-title)', // More specific selector
2416+
items: '.window-sidebar-item:not(.window-sidebar-title, .not-sortable)', // More specific selector
24172417
connectWith: '.window-sidebar',
24182418
cursor: 'move',
24192419
axis: 'y',

0 commit comments

Comments
 (0)