Fix link copy toast messages, remove custom toast in favor of authStore, remove a component that was no longer used.

This commit is contained in:
Leo Vasanko
2025-12-10 17:18:48 +00:00
parent b9b6c9356f
commit 8310d9f0b5
5 changed files with 6 additions and 108 deletions
-14
View File
@@ -372,20 +372,6 @@ function generateUserRegistrationLink(u) {
showRegModal.value = true
}
function onLinkCopied() {
authStore.showMessage('Link copied to clipboard!')
}
function copy(text) {
if (!text) return
navigator.clipboard.writeText(text)
.catch(()=>{})
}
function permissionDisplayName(id) {
return permissions.value.find(p => p.id === id)?.display_name || id
}
async function toggleOrgPermission(org, permId, checked) {
// Build next permission list
const has = org.permissions.includes(permId)