diff --git a/app/assets/javascripts/controllers/admin/invoices.js.erb b/app/assets/javascripts/controllers/admin/invoices.js.erb index 8f62f7081..1fa010392 100644 --- a/app/assets/javascripts/controllers/admin/invoices.js.erb +++ b/app/assets/javascripts/controllers/admin/invoices.js.erb @@ -26,6 +26,12 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I /* PUBLIC SCOPE */ + // default active tab + $scope.tabs = { + listing: { active: !Fablab.withoutInvoices }, + settings: { active: Fablab.withoutInvoices } + }; + // List of all users invoices $scope.invoices = invoices; diff --git a/app/assets/templates/admin/invoices/index.html.erb b/app/assets/templates/admin/invoices/index.html.erb index 0d1546452..9ca28e005 100644 --- a/app/assets/templates/admin/invoices/index.html.erb +++ b/app/assets/templates/admin/invoices/index.html.erb @@ -24,7 +24,7 @@
- +

{{ 'invoices.filter_invoices' | translate }}

@@ -116,7 +116,7 @@ - +