Page MenuHomePhabricator

Remove square brackets in patrol link after click
Open, LowPublicFeature

Description

With the new AJAX patrol, after clicking the patrol button the text is replaced with the loading icon, but the brackets around it are kept until the action is completed, which is a bit ugly.
Low priority because it's usually so quick as to go unnoticed.


Version: 1.21.x
Severity: enhancement

Details

Reference
bz43164

Related Objects

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:49 AM
bzimport set Reference to bz43164.
bzimport added a subscriber: Unknown Object (MLST).

It was actually implemented that way on purpose (changing to 'enhancement').

But I can see how they look out of place. We do need to keep them though, for the case where the action fails (need to restore them, without hardcoding them in the client side error handler).

I'd say instead of removing the label, inserting the loader, and re-inserting the message on error. Let's hide the entire thing (display none), add the loader, and then either remove both or remove loader and show original.

(Moving the dependency to its "parent" bug because Krinkle complained about the dependency relation to the tracking bug being unclear.)

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM