mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Make the on click refresh an automatic refresh
This commit is contained in:
@ -55,8 +55,7 @@
|
||||
:duration="4000"
|
||||
:speed="0"
|
||||
:max="1"
|
||||
classes="notification is-radiusless"
|
||||
:dangerouslySetInnerHtml="true" />
|
||||
classes="notification is-radiusless" />
|
||||
<main class="main-section">
|
||||
<RouterView />
|
||||
</main>
|
||||
|
@ -60,10 +60,8 @@
|
||||
// We now check the twofaccounts store state in case the backend data have changed.
|
||||
const isUpToDate = await twofaccounts.isUpToDateWithBackend()
|
||||
if (! isUpToDate) {
|
||||
notify.action({
|
||||
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>',
|
||||
duration: -1
|
||||
})
|
||||
await twofaccounts.refresh()
|
||||
notify.info({ text: trans('commons.data_refreshed_to_reflect_server_changes'), duration: 10000 })
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user