Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Use correct versioned state badge designs in campaign admin list items #140

Conversation

robbieaverill
Copy link
Contributor

@robbieaverill robbieaverill commented Apr 17, 2019

Fixes #77

Requires silverstripe/silverstripe-admin#861 first.

Example screenshot:

image

The "No changes" badge used to be invisible before hovering over it. I haven't carried that change through. Would be nice to run through this with @clarkepaul in person when you're available some time. The colours are in silverstripe/silverstripe-admin#861 and are just $orange and $green variables in admin.

badge.Title = i18n._t('CampaignAdmin.MODIFIED', 'Modified');
break;
case 'deleted':
badge.className = 'badge badge-error list-group-item__status';
badge.status = 'removed';
badge.Title = i18n._t('CampaignAdmin.REMOVED', 'Removed');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't see a way of reproducing this via the UI. When I remove a page from a campaign is just removes it from the items list.

@robbieaverill robbieaverill force-pushed the pulls/1.4/versioned-state-badges branch from 845b019 to 604bfa5 Compare April 17, 2019 01:48
@robbieaverill
Copy link
Contributor Author

This will need to be updated since the admin PR has changed a bit

@emteknetnz
Copy link
Member

This pull request hasn't had any activity for a while. Are you going to be doing further work on it, or would you prefer to close it now?

@robbieaverill
Copy link
Contributor Author

I can take a look for sure. I seem to remember someone else in the team had made the same change anyway. I'll check tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

State tags use different styling in the campaigns section
4 participants