acces.php: remove Mot de passe column, add key icon copy button, reorder actions, switch URL icon to link-simple; fix dialog functions not on window; fix archive: move form into dialog (native submit); add caret icon to archived links details

This commit is contained in:
Pontoporeia
2026-07-05 12:05:53 +02:00
parent 3e93150c76
commit 3c845f9d40
6 changed files with 39 additions and 51 deletions
+6 -15
View File
@@ -74,38 +74,29 @@ function _copyTextToClipboard(text) {
.catch(() => {});
}
function _openEditDialog(id, name, _hasPassword, expiresVal) {
window.openEditDialog = function (id, name, _hasPassword, expiresVal) {
document.getElementById("edit-link-id").value = id;
document.getElementById("edit-name").value = name || "";
document.getElementById("edit-expires").value = expiresVal || "";
document.getElementById("edit-dialog").showModal();
}
function _openApproveDialog(requestId) {
window.openApproveDialog = function (requestId) {
document.getElementById("approve-request-id").value = requestId;
document.getElementById("approve-dialog").showModal();
}
function _openRejectDialog(requestId) {
window.openRejectDialog = function (requestId) {
document.getElementById("reject-request-id").value = requestId;
document.getElementById("reject-dialog").showModal();
}
var _pendingArchiveLinkId = null;
function _openArchiveLinkDialog(id) {
_pendingArchiveLinkId = id;
window.openArchiveLinkDialog = function (id) {
document.getElementById("archive-link-id").value = id;
document.getElementById("archive-link-dialog").showModal();
}
function _executeArchiveLink() {
var form = document.getElementById(
`archive-link-form-${_pendingArchiveLinkId}`,
);
if (form) form.submit();
}
function _openDeleteArchivedLinkDialog(id) {
window.openDeleteArchivedLinkDialog = function (id) {
document.getElementById("delete-archived-link-id").value = id;
document.getElementById("delete-archived-link-dialog").showModal();
}