Sfoglia il codice sorgente

Fix logout confirmation, use translation

Maarten van den Berg 6 anni fa
parent
commit
648f751474
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/views/shared/_menu.html.haml

+ 1 - 1
app/views/shared/_menu.html.haml

@@ -39,6 +39,6 @@
39 39
             %i.fas.fa-cogs{'aria-hidden': true}
40 40
             = t 'settings.settings'
41 41
         %li
42
-          = link_to logout_path, confirm: "Really log out?", method: :delete do
42
+          = link_to logout_path, data: {confirm: t(:areyousure)}, method: :delete do
43 43
             %i.fas.fa-sign-out-alt{'aria-hidden': true}
44 44
             = t 'log_out'