diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js
index d6bd660b9..f2c2c49a4 100644
--- a/src/UI/UIItem.js
+++ b/src/UI/UIItem.js
@@ -19,7 +19,6 @@
import UIWindowPublishWebsite from './UIWindowPublishWebsite.js';
import UIWindowItemProperties from './UIWindowItemProperties.js';
-import UIWindowGetCopyLink from './UIWindowGetCopyLink.js';
import UIWindowSaveAccount from './UIWindowSaveAccount.js';
import UIPopover from './UIPopover.js';
import UIWindowEmailConfirmationRequired from './UIWindowEmailConfirmationRequired.js';
@@ -1131,37 +1130,6 @@ function UIItem(options){
}
});
}
-
-
- // -------------------------------------------
- // Get Copy Link
- // -------------------------------------------
- if(!is_trashed && !is_trash && (options.associated_app_name === null || options.associated_app_name === undefined)){
- menu_items.push({
- html: i18n('get_copy_link'),
- onClick: async function(){
- if(window.user.is_temp &&
- !await UIWindowSaveAccount({
- message: i18n('save_account_to_get_copy_link'),
- send_confirmation_code: true,
- window_options: {
- backdrop: true,
- close_on_backdrop_click: false,
- }
- }))
- return;
- else if(!window.user.email_confirmed && !await UIWindowEmailConfirmationRequired())
- return;
-
- UIWindowGetCopyLink({
- name: $(el_item).attr('data-name'),
- uid: $(el_item).attr('data-uid'),
- path: $(el_item).attr('data-path'),
- is_dir: options.is_dir,
- });
- }
- });
- }
// -------------------------------------------
// Zip
// -------------------------------------------
diff --git a/src/UI/UIWindowGetCopyLink.js b/src/UI/UIWindowGetCopyLink.js
deleted file mode 100644
index 769383f28..000000000
--- a/src/UI/UIWindowGetCopyLink.js
+++ /dev/null
@@ -1,121 +0,0 @@
-/**
- * Copyright (C) 2024 Puter Technologies Inc.
- *
- * This file is part of Puter.
- *
- * Puter is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published
- * by the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see
Share the following link with anyone and they will be able to receive a copy of ${html_encode(options.name)}
`; - h += ``; - h += `` - h += `Share to
` - social_links_html += `` - social_links_html += `${subdomain.address} (disassociate)
`); + $(el_window).find('.item-prop-val-websites').append(`${html_encode(subdomain.address)} (disassociate)
`); }); } else{ diff --git a/src/UI/UIWindowMyWebsites.js b/src/UI/UIWindowMyWebsites.js index 8f4dd5ccf..d4e23fbe5 100644 --- a/src/UI/UIWindowMyWebsites.js +++ b/src/UI/UIWindowMyWebsites.js @@ -84,16 +84,16 @@ async function UIWindowMyWebsites(options){ h += ``; + h += `
`;
h+= ``;
- h+= `${sites[i].root_dir.path}`;
+ h+= `${html_encode(sites[i].root_dir.path)}`;
h += `
`;
- h += ``;
+ h += ``;
h += `${i18n('disassociate_dir')}`;
h += `