I'm attempting to delete all local fonts that were imported using @face-your-face. Using the Apply screen, I disable all the local fonts first, then delete them one by one. But by the time I reach the last font, I am automatically redirected to the Browse screen with the following help message:

Enable some fonts before applying fonts.

Therefore I am unable to delete the last remaining local font.

However, I have found a workaround by looking at the URL of the previous delete actions. By substituting the "font number" with "1" in the URL (the previous delete actions had a sequentially higher number), I am able to delete the last remaining local font using a URL such as the one below:

http://www.mydomain.com/admin/appearance/fontyourface/local_fonts/delete/1?destination=admin/appearance/fontyourface

Would it be possible to add a delete button in the Font Edit screen (accessible through the gear icon on the Browse screen)? This should also improve usability as local fonts can be deleted from both the Apply screen directly, or indirectly through the Browse screen.

Comments

sreynen’s picture

Issue tags: +Novice

Yep, there's already code to add the delete button to the edit screen, but it's just looking for the old form ID, from before we moved that to a separate UI module. So we should just need to update the form ID. I believe this is a 3 character edit, about as easy as they get. Who wants to make their first patch?

sreynen’s picture

Status: Active » Fixed
ryoken’s picture

Thank you!

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Made complete URL visible