fix revoke button

This commit is contained in:
monlovesmango
2023-07-31 11:27:41 -05:00
committed by fiatjaf_
parent 06f1167ff1
commit 4e874a7902

View File

@@ -67,7 +67,7 @@ function Options() {
list.push({
host,
type,
accept: {true: 'allow', false: 'deny'}[accept],
accept,
conditions,
created_at
})
@@ -242,7 +242,7 @@ function Options() {
<tr key={host + type + accept + JSON.stringify(conditions)}>
<td>{host}</td>
<td>{type}</td>
<td>{accept}</td>
<td>{accept === 'true' ? 'allow' : 'deny'}</td>
<td>
{conditions.kinds
? `kinds: ${Object.keys(conditions.kinds).join(', ')}`
@@ -365,7 +365,7 @@ function Options() {
if (
window.confirm(
`revoke all ${
accept ? 'accept' : 'deny'
accept === 'true' ? 'accept' : 'deny'
} ${type} policies from ${host}?`
)
) {