hide historical view from admintools and reject keyboard shortcut if not
availeble
This commit is contained in:
parent
e1801e0ee5
commit
def4777573
|
@ -391,7 +391,8 @@ function Admintools() {
|
|||
>
|
||||
{(submitting) ? '...' : t`Submit`}
|
||||
</button>
|
||||
|
||||
{(window.ssv && window.ssv.backupurl) && (
|
||||
<div>
|
||||
<br />
|
||||
<div className="modaldivider" />
|
||||
<h3 className="modaltitle">{t`Rollback to Date`}</h3>
|
||||
|
@ -465,7 +466,8 @@ function Admintools() {
|
|||
>
|
||||
{(submitting) ? '...' : t`Submit`}
|
||||
</button>
|
||||
|
||||
</div>
|
||||
)}
|
||||
{(userlvl === 1) && (
|
||||
<div>
|
||||
<br />
|
||||
|
@ -510,7 +512,6 @@ function Admintools() {
|
|||
{(submitting) ? '...' : t`Submit`}
|
||||
</button>
|
||||
<br />
|
||||
|
||||
<div className="modaldivider" />
|
||||
<h3 className="modaltitle">{t`Manage Moderators`}</h3>
|
||||
<p className="modalcotext">
|
||||
|
|
|
@ -62,7 +62,9 @@ function onKeyPress(event: KeyboardEvent) {
|
|||
: t`Grid OFF`));
|
||||
return;
|
||||
case 'h':
|
||||
if (window.ssv && window.ssv.backupurl) {
|
||||
store.dispatch(toggleHistoricalView());
|
||||
}
|
||||
return;
|
||||
case 'x':
|
||||
store.dispatch(togglePixelNotify());
|
||||
|
|
Loading…
Reference in New Issue
Block a user