mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-31 02:51:36 +02: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
src/pages
|
@ -357,6 +357,7 @@ function Home({ hidden }) {
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{snapStates.homeNew.length > 0 &&
|
{snapStates.homeNew.length > 0 &&
|
||||||
|
uiState !== 'loading' &&
|
||||||
((scrollDirection === 'start' &&
|
((scrollDirection === 'start' &&
|
||||||
!nearReachStart &&
|
!nearReachStart &&
|
||||||
!nearReachEnd) ||
|
!nearReachEnd) ||
|
||||||
|
|
|
@ -151,7 +151,7 @@ function Notifications() {
|
||||||
<Loader hidden={uiState !== 'loading'} />
|
<Loader hidden={uiState !== 'loading'} />
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{snapStates.notificationsNew.length > 0 && (
|
{snapStates.notificationsNew.length > 0 && uiState !== 'loading' && (
|
||||||
<button
|
<button
|
||||||
class="updates-button"
|
class="updates-button"
|
||||||
type="button"
|
type="button"
|
||||||
|
|
Loading…
Add table
Reference in a new issue