added back to last step

This commit is contained in:
Mike Sutton 2021-10-01 01:53:46 +02:00
parent 7eafdcab0e
commit bc083c38c8

View File

@ -47,6 +47,9 @@
<% end %> <% end %>
buttons: [ buttons: [
<% if index == steps.size - 1 %> <% if index == steps.size - 1 %>
<% if steps.size > 1 %>
{ text: '<%= t('walter.back') %>', action: Walter.tours["<%= tour_name %>"].back, classes: 'shepherd-button-secondary' },
<% end %>
{ text: '<%= t('walter.done') %>', action: Walter.tours["<%= tour_name %>"].complete }, { text: '<%= t('walter.done') %>', action: Walter.tours["<%= tour_name %>"].complete },
<% else %> <% else %>
<% if index == 0 %> <% if index == 0 %>