Skip to content

Commit

Permalink
Merge branch 'develop' into feature/Shortcut-panel-in-reference-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 authored Nov 14, 2023
2 parents 9c1c8b6 + e219923 commit 9cd7964
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 25 deletions.
8 changes: 0 additions & 8 deletions apps/sensenet/src/components/appbar/desktop-nav-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Grid, IconButton, ListItemIcon, ListItemText, MenuItem, MenuList, Paper
import ClickAwayListener from '@material-ui/core/ClickAwayListener'
import { createStyles, makeStyles, Theme, useTheme } from '@material-ui/core/styles'
import KeyboardArrowDown from '@material-ui/icons/KeyboardArrowDown'
import Notifications from '@material-ui/icons/Notifications'
import { Switch } from '@sensenet/controls-react'
import { useInjector, useRepository } from '@sensenet/hooks-react'
import { clsx } from 'clsx'
Expand Down Expand Up @@ -102,13 +101,6 @@ export const DesktopNavMenu: FunctionComponent = () => {

return (
<div className={clsx(globalClasses.centered, classes.navMenu)}>
<IconButton
id="olvy-trigger"
aria-label={localization.topMenu.openNewMenu}
className={classes.iconButton}
style={{ marginRight: '16px' }}>
<Notifications className={classes.icon} />
</IconButton>
<>
<UserAvatar
user={currentUser}
Expand Down
5 changes: 0 additions & 5 deletions apps/sensenet/src/components/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ export const Settings: React.FunctionComponent = () => {
displayName: localizationDrawer.titles.Webhooks,
url: resolvePathParams({ path: PATHS.settings.appPath, params: { submenu: 'webhooks' } }),
},
{
name: 'adminui',
displayName: localizationDrawer.titles.AdminUiCustomization,
url: resolvePathParams({ path: PATHS.settings.appPath, params: { submenu: 'adminui' } }),
},
]

const renderContent = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ export class NavigationCommandProvider implements CommandProvider {
keywords: 'saved query search find',
hits: [term],
},
{
primaryText: this.localizationValues.eventsPrimary,
url: resolvePathParams({ path: PATHS.events.appPath }),
secondaryText: this.localizationValues.eventsSecondary,
content: { Icon: 'EventLog' } as any,
keywords: 'event events error warning log logs',
hits: [term],
},
]
}

Expand Down
5 changes: 3 additions & 2 deletions packages/sn-controls-react/src/fieldcontrols/password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ export const Password: React.FC<ReactClientFieldSetting> = (props) => {
case 'new':
return (
<FormControl fullWidth={true} className={classes.root}>
<InputLabel htmlFor={props.settings.Name}>{props.settings.DisplayName}</InputLabel>
<InputLabel htmlFor={props.settings.Name} shrink={true}>
{props.settings.DisplayName}
</InputLabel>
<Input
autoComplete="new-password"
type={showPassword ? 'text' : 'password'}
name={props.settings.Name}
id={props.settings.Name}
placeholder={props.settings.DisplayName}
required={props.settings.Compulsory}
disabled={props.settings.ReadOnly}
onChange={handleChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exports[`Password field control should set all the props 1`] = `
>
<WithStyles(ForwardRef(InputLabel))
htmlFor="Password"
shrink={true}
>
Password
</WithStyles(ForwardRef(InputLabel))>
Expand All @@ -31,7 +32,6 @@ exports[`Password field control should set all the props 1`] = `
id="Password"
name="Password"
onChange={[Function]}
placeholder="Password"
required={true}
type="password"
value=""
Expand Down
1 change: 0 additions & 1 deletion packages/sn-controls-react/test/password.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ describe('Password field control', () => {
expect(wrapper.find(InputLabel).text()).toBe(defaultSettings.DisplayName)
expect(wrapper.find(Input).prop('name')).toBe(defaultSettings.Name)
expect(wrapper.find(Input).prop('id')).toBe(defaultSettings.Name)
expect(wrapper.find(Input).prop('placeholder')).toBe(defaultSettings.DisplayName)
expect(wrapper.find(Input).prop('required')).toBeTruthy()
expect(wrapper.find(Input).prop('disabled')).toBeTruthy()
expect(wrapper.find(FormHelperText).text()).toBe(defaultSettings.Description)
Expand Down

0 comments on commit 9cd7964

Please sign in to comment.