mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Don't show updates button when loading
This commit is contained in:
parent
e282f5df2a
commit
4ed2852c41
2 changed files with 2 additions and 1 deletions
|
@ -357,6 +357,7 @@ function Home({ hidden }) {
|
|||
</div>
|
||||
</header>
|
||||
{snapStates.homeNew.length > 0 &&
|
||||
uiState !== 'loading' &&
|
||||
((scrollDirection === 'start' &&
|
||||
!nearReachStart &&
|
||||
!nearReachEnd) ||
|
||||
|
|
|
@ -151,7 +151,7 @@ function Notifications() {
|
|||
<Loader hidden={uiState !== 'loading'} />
|
||||
</div>
|
||||
</header>
|
||||
{snapStates.notificationsNew.length > 0 && (
|
||||
{snapStates.notificationsNew.length > 0 && uiState !== 'loading' && (
|
||||
<button
|
||||
class="updates-button"
|
||||
type="button"
|
||||
|
|
Loading…
Reference in a new issue