Skip to content

Commit

Permalink
feat(webapp): warn when deleting override token
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Dec 17, 2024
1 parent 3fab09f commit 1899cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/webapp/src/views/CrudListToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
createSuccess: (item) => `Your new token's secret value is: <code>${item.token}</code><br />It is only displayed once.`,
destroy: d => (d.name ? `Delete token with name "${d.name}" and ID ${d.id}?` : `Delete unnamed token with ID ${d.id}?`),
destroyInfo: () => ('This operation is permanent. Any devices using this token will no longer be able to authenticate.'),
destroyWarning: d => (d.id == useUserStore().token.id ? 'This is your current session token. Deleting it will invalidate the session.' : ''),
destroyWarning: d => (d.id == useUserStore().token.id ? 'This is your current session token. Deleting it will invalidate the session.' : (!!d.user_override ? `This token is owned by ${d.owner}. Deleting it will revoke their authorization to manage your DNS.` : '')),
},
columns: {
name: {
Expand Down

0 comments on commit 1899cf6

Please sign in to comment.