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 18, 2024
1 parent 140e153 commit f5e093d
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 f5e093d

Please sign in to comment.