mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-14 20:11:22 +00:00
Merge pull request #81 from Qortal/bugfix/translation-and-blocking
block user changes
This commit is contained in:
commit
6a1a03e4e6
@ -209,7 +209,7 @@ export const AdminSpaceInner = ({
|
|||||||
fontSize: '14px',
|
fontSize: '14px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t('auth:message.error.publishing_key', {
|
{t('auth:message.generic.publishing_key', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})}
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
@ -6,6 +6,7 @@ import {
|
|||||||
DialogContent,
|
DialogContent,
|
||||||
DialogContentText,
|
DialogContentText,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
|
IconButton,
|
||||||
TextField,
|
TextField,
|
||||||
Typography,
|
Typography,
|
||||||
useTheme,
|
useTheme,
|
||||||
@ -13,6 +14,8 @@ import {
|
|||||||
import { useContext, useEffect, useState } from 'react';
|
import { useContext, useEffect, useState } from 'react';
|
||||||
import { getBaseApiReact, QORTAL_APP_CONTEXT } from '../../App';
|
import { getBaseApiReact, QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import { Spacer } from '../../common/Spacer';
|
import { Spacer } from '../../common/Spacer';
|
||||||
|
import CloseIcon from '@mui/icons-material/Close';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
executeEvent,
|
executeEvent,
|
||||||
subscribeToEvent,
|
subscribeToEvent,
|
||||||
@ -397,7 +400,20 @@ export const BlockedUsersModal = () => {
|
|||||||
postProcess: 'capitalizeAll',
|
postProcess: 'capitalizeAll',
|
||||||
})}
|
})}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
<IconButton
|
||||||
|
aria-label={t('core:action.close', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
})}
|
||||||
|
onClick={onCancel}
|
||||||
|
sx={{
|
||||||
|
position: 'absolute',
|
||||||
|
right: 8,
|
||||||
|
top: 8,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CloseIcon />
|
||||||
|
</IconButton>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogContentText id="alert-dialog-description">
|
<DialogContentText id="alert-dialog-description">
|
||||||
{t('auth:message.generic.blocking', {
|
{t('auth:message.generic.blocking', {
|
||||||
|
@ -16,6 +16,8 @@ import { base64ToUint8Array } from '../../qdn/encryption/group-encryption';
|
|||||||
import { uint8ArrayToObject } from '../../encryption/encryption';
|
import { uint8ArrayToObject } from '../../encryption/encryption';
|
||||||
import { AddGroup } from './AddGroup';
|
import { AddGroup } from './AddGroup';
|
||||||
import CreateIcon from '@mui/icons-material/Create';
|
import CreateIcon from '@mui/icons-material/Create';
|
||||||
|
import PersonOffIcon from '@mui/icons-material/PersonOff';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
AuthenticatedContainerInnerRight,
|
AuthenticatedContainerInnerRight,
|
||||||
CustomButton,
|
CustomButton,
|
||||||
@ -61,6 +63,7 @@ import {
|
|||||||
groupsOwnerNamesAtom,
|
groupsOwnerNamesAtom,
|
||||||
groupsPropertiesAtom,
|
groupsPropertiesAtom,
|
||||||
isOpenBlockedModalAtom,
|
isOpenBlockedModalAtom,
|
||||||
|
isRunningPublicNodeAtom,
|
||||||
memberGroupsAtom,
|
memberGroupsAtom,
|
||||||
mutedGroupsAtom,
|
mutedGroupsAtom,
|
||||||
selectedGroupIdAtom,
|
selectedGroupIdAtom,
|
||||||
@ -434,6 +437,7 @@ export const Group = ({
|
|||||||
const [groupChatTimestamps, setGroupChatTimestamps] = useAtom(
|
const [groupChatTimestamps, setGroupChatTimestamps] = useAtom(
|
||||||
groupChatTimestampsAtom
|
groupChatTimestampsAtom
|
||||||
);
|
);
|
||||||
|
const [isRunningPublicNode] = useAtom(isRunningPublicNodeAtom);
|
||||||
|
|
||||||
const [appsMode, setAppsMode] = useState('home');
|
const [appsMode, setAppsMode] = useState('home');
|
||||||
const [appsModeDev, setAppsModeDev] = useState('home');
|
const [appsModeDev, setAppsModeDev] = useState('home');
|
||||||
@ -1846,6 +1850,7 @@ export const Group = ({
|
|||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
gap: '10px',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
}}
|
}}
|
||||||
@ -1866,6 +1871,23 @@ export const Group = ({
|
|||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})}
|
})}
|
||||||
</CustomButton>
|
</CustomButton>
|
||||||
|
{!isRunningPublicNode && (
|
||||||
|
<CustomButton
|
||||||
|
onClick={() => {
|
||||||
|
setIsOpenBlockedUserModal(true);
|
||||||
|
}}
|
||||||
|
sx={{
|
||||||
|
minWidth: 'unset',
|
||||||
|
padding: '10px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<PersonOffIcon
|
||||||
|
sx={{
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</CustomButton>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user