mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-05-18 21:20:51 +02:00
Make the on click refresh an automatic refresh
This commit is contained in:
parent
910e0bc830
commit
b55ea8c84f
@ -55,8 +55,7 @@
|
|||||||
:duration="4000"
|
:duration="4000"
|
||||||
:speed="0"
|
:speed="0"
|
||||||
:max="1"
|
:max="1"
|
||||||
classes="notification is-radiusless"
|
classes="notification is-radiusless" />
|
||||||
:dangerouslySetInnerHtml="true" />
|
|
||||||
<main class="main-section">
|
<main class="main-section">
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</main>
|
</main>
|
||||||
|
@ -60,10 +60,8 @@
|
|||||||
// We now check the twofaccounts store state in case the backend data have changed.
|
// We now check the twofaccounts store state in case the backend data have changed.
|
||||||
const isUpToDate = await twofaccounts.isUpToDateWithBackend()
|
const isUpToDate = await twofaccounts.isUpToDateWithBackend()
|
||||||
if (! isUpToDate) {
|
if (! isUpToDate) {
|
||||||
notify.action({
|
await twofaccounts.refresh()
|
||||||
text: '<span class="is-size-7">' + trans('commons.data_have_changed_on_server_side') + '</span><br /><a href="." class="button is-rounded is-warning is-small">' + trans('commons.reload') + '</a>',
|
notify.info({ text: trans('commons.data_refreshed_to_reflect_server_changes'), duration: 10000 })
|
||||||
duration: -1
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -47,7 +47,8 @@
|
|||||||
'new_name' => 'New name',
|
'new_name' => 'New name',
|
||||||
'options' => 'Options',
|
'options' => 'Options',
|
||||||
'reload' => 'Reload',
|
'reload' => 'Reload',
|
||||||
'some_data_have_changed' => 'Some data have changed. You should',
|
'refresh' => 'Refresh',
|
||||||
|
'data_refreshed_to_reflect_server_changes' => 'Data has been refresh to reflect server-side changes',
|
||||||
'generate' => 'Generate',
|
'generate' => 'Generate',
|
||||||
'generating_otp' => 'Generating OTP',
|
'generating_otp' => 'Generating OTP',
|
||||||
'open_in_browser' => 'Open in browser',
|
'open_in_browser' => 'Open in browser',
|
||||||
|
Loading…
Reference in New Issue
Block a user