Feature Flag strategy delete button not consistent
Issue
The delete button for feature flag strategies is sometimes available to delete only remaining feature flag strategy, sometimes it's not available. It depends on the order you delete items.
Steps to Reproduce
- When editing a feature flag that has one strategy, there is no delete button.
- If you add one more strategy, suddenly there are delete buttons for both.
- If you delete the bottom one first, the delete button disappears from the top one, and you can't delete it.
- If you delete the top one first, you can then delete the remaining one and have zero remaining strategies.
Screen_Recording_2020-06-17_at_17.10.21
I don't mind if we make sure that there is always one strategy, or if we allow zero strategies. Just want to make sure the behavior is consistent.
Proposal
Since 0 strategies is supported in the API, the UI should align with it. The Delete button should always be shown
Edited by Orit Golowinski