fix revoke button
This commit is contained in:
@@ -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}?`
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user