Reduce unused branching in UI

This commit is contained in:
Kukks 2020-09-28 09:09:28 +02:00 committed by rockstardev
parent 3ce6269212
commit 4ffd2265ea

View file

@ -73,9 +73,8 @@
Started: @shopify.IntegratedAt.Value.ToBrowserDate() Started: @shopify.IntegratedAt.Value.ToBrowserDate()
</p> </p>
<button name="command" type="submit" class="btn btn-danger" value="ShopifyClearCredentials"> <button name="command" type="submit" class="btn btn-danger" value="ShopifyClearCredentials">
@(shopify.IntegratedAt.HasValue ? "Stop Shopify calls and clear credentials" : "Clear credentials") Stop Shopify calls and clear credentials
</button> </button>
} }