Hide the SRP history link for new buefy themes

until support for that is added...
This commit is contained in:
Lance Edgar 2020-01-07 06:44:27 -06:00
parent 3fc8254219
commit 910e82a795

View file

@ -497,7 +497,11 @@ class ProductsView(MasterView):
date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date() date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date()
text = "{} (as of {})".format(text, date) text = "{} (as of {})".format(text, date)
return self.add_srp_history_link(text) if self.get_use_buefy():
# TODO: should add history link here too...
return text
else: # not buefy
return self.add_srp_history_link(text)
def render_true_cost(self, product, field): def render_true_cost(self, product, field):
if not product.volatile: if not product.volatile: