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