admin unlisted toggle

This commit is contained in:
mantikoros 2022-08-28 13:32:59 -05:00
parent 133e7a9c3f
commit d63dd12056

View File

@ -170,6 +170,21 @@ export function ContractInfoDialog(props: { contract: Contract; bets: Bet[] }) {
</td> </td>
</tr> </tr>
)} )}
{isAdmin && (
<tr>
<td>[ADMIN] Unlisted</td>
<td>
<ShortToggle
enabled={contract.visibility === 'unlisted'}
setEnabled={(b) =>
updateContract(id, {
visibility: b ? 'unlisted' : 'public',
})
}
/>
</td>
</tr>
)}
</tbody> </tbody>
</table> </table>