Skip to content

Commit

Permalink
- Update schedules -> Scheduled updates
Browse files Browse the repository at this point in the history
- Add margin to single site submit button
- Rename Add new schedule button
  • Loading branch information
TimBroddin committed May 10, 2024
1 parent 8a063c0 commit 0ac44db
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const PluginsScheduledUpdatesMultisite = ( {
const title = {
create: translate( 'New schedule' ),
edit: translate( 'Edit schedule' ),
list: translate( 'Update schedules' ),
list: translate( 'Scheduled Updates' ),
}[ context ];

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const ScheduleList = ( props: Props ) => {
return (
<div className="plugins-update-manager plugins-update-manager-multisite">
<div className="plugins-update-manager-multisite__header">
<h1>{ translate( 'Update schedules' ) }</h1>
<h1>{ translate( 'Scheduled Updates' ) }</h1>
{ showNewScheduleBtn && ! isScheduleEmpty && (
<Button
__next40pxDefaultSize={ ! compact }
Expand Down
2 changes: 1 addition & 1 deletion client/blocks/plugins-scheduled-updates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const PluginsScheduledUpdates = ( props: Props ) => {
onClick={ onCreateNewSchedule }
disabled={ ! canCreateSchedules || ! siteHasEligiblePlugins }
>
{ translate( 'Add new schedule' ) }
{ translate( 'New Schedule' ) }
</Button>
) }
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const ScheduleCreate = ( props: Props ) => {
variant={ canCreateSchedules ? 'primary' : 'secondary' }
disabled={ ! canCreateSchedules || ! siteHasEligiblePlugins }
isBusy={ isBusy }
className="schedule-form-button"
>
{ translate( 'Create' ) }
</Button>
Expand Down
1 change: 1 addition & 0 deletions client/blocks/plugins-scheduled-updates/schedule-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const ScheduleEdit = ( props: Props ) => {
variant={ canCreateSchedules ? 'primary' : 'secondary' }
isBusy={ isBusy }
disabled={ ! canCreateSchedules }
className="schedule-form-button"
>
{ translate( 'Save' ) }
</Button>
Expand Down
4 changes: 4 additions & 0 deletions client/blocks/plugins-scheduled-updates/schedule-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,7 @@
}
}
}

.schedule-form-button {
margin: 0.5rem 0;
}

0 comments on commit 0ac44db

Please sign in to comment.