diff --git a/src/dev-center/css/style.css b/src/dev-center/css/style.css index 1f6b11f61..7febab428 100644 --- a/src/dev-center/css/style.css +++ b/src/dev-center/css/style.css @@ -1365,4 +1365,8 @@ dialog{ .no-hover:hover { background-color: transparent !important; +} + +.root-dir-name{ + cursor: pointer; } \ No newline at end of file diff --git a/src/dev-center/js/websites.js b/src/dev-center/js/websites.js index 76d1efd2e..74169ff28 100644 --- a/src/dev-center/js/websites.js +++ b/src/dev-center/js/websites.js @@ -188,7 +188,7 @@ function generate_website_card(website) { ${website.subdomain}.puter.site - ${website.root_dir ? website.root_dir.name : ''} + ${website.root_dir ? website.root_dir.name : ''} ${website.created_at} @@ -353,4 +353,17 @@ async function attempt_delete_website(website_name) { } } +$(document).on('click', '.root-dir-name', function (e) { + e.preventDefault(); + e.stopPropagation(); + e.stopImmediatePropagation(); + + const root_dir_path = $(this).attr('data-root-dir-path'); + + if(root_dir_path){ + puter.ui.launchApp('explorer', { + path: root_dir_path, + }); + } +}) export default init_websites; \ No newline at end of file