mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Refactor of team websites.
This commit is contained in:
parent
2552e1d495
commit
dc3818baaa
22 changed files with 61 additions and 208 deletions
|
|
@ -113,7 +113,7 @@ export function DateFilter({
|
|||
value={value}
|
||||
alignment={alignment}
|
||||
placeholder={formatMessage(labels.selectDate)}
|
||||
onSelect={key => handleChange(key as any)}
|
||||
onChange={key => handleChange(key as any)}
|
||||
>
|
||||
{({ label, value, divider }) => (
|
||||
<Item key={value} divider={divider}>
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export function WebsiteSelect({
|
|||
value={selectedId as string}
|
||||
renderValue={renderValue}
|
||||
renderEmpty={renderEmpty}
|
||||
onSelect={handleSelect}
|
||||
onChange={handleSelect}
|
||||
alignment="end"
|
||||
placeholder={formatMessage(labels.selectWebsite)}
|
||||
allowSearch={true}
|
||||
|
|
|
|||
|
|
@ -238,13 +238,9 @@ export const messages = defineMessages({
|
|||
id: 'message.team-already-member',
|
||||
defaultMessage: 'You are already a member of the team.',
|
||||
},
|
||||
deleteAccount: {
|
||||
id: 'message.delete-account',
|
||||
defaultMessage: 'To delete this account, type {confirmation} in the box below to confirm.',
|
||||
},
|
||||
deleteWebsite: {
|
||||
id: 'message.delete-website',
|
||||
defaultMessage: 'To delete this website, type {confirmation} in the box below to confirm.',
|
||||
actionConfirmation: {
|
||||
id: 'message.action-confirmation',
|
||||
defaultMessage: 'Type {confirmation} in the box below to confirm.',
|
||||
},
|
||||
resetWebsite: {
|
||||
id: 'message.reset-website',
|
||||
|
|
@ -263,6 +259,10 @@ export const messages = defineMessages({
|
|||
id: 'message.delete-website-warning',
|
||||
defaultMessage: 'All website data will be deleted.',
|
||||
},
|
||||
deleteTeamWarning: {
|
||||
id: 'message.delete-team-warning',
|
||||
defaultMessage: 'Deleting a team will also delete all team websites.',
|
||||
},
|
||||
noResultsFound: {
|
||||
id: 'message.no-results-found',
|
||||
defaultMessage: 'No results found.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue