mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-30 05:09:18 +03:00
Still need to request relationship for moved accounts
Instead hide specific elements if moved.
This commit is contained in:
parent
671d2c9bb1
commit
bb5d34c94c
1 changed files with 30 additions and 28 deletions
|
@ -809,38 +809,40 @@ function AccountInfo({
|
||||||
</div>
|
</div>
|
||||||
</LinkOrDiv>
|
</LinkOrDiv>
|
||||||
)}
|
)}
|
||||||
<div class="account-metadata-box">
|
{!moved && (
|
||||||
<div
|
<div class="account-metadata-box">
|
||||||
class="shazam-container no-animation"
|
<div
|
||||||
hidden={!!postingStats}
|
class="shazam-container no-animation"
|
||||||
>
|
hidden={!!postingStats}
|
||||||
<div class="shazam-container-inner">
|
>
|
||||||
<button
|
<div class="shazam-container-inner">
|
||||||
type="button"
|
<button
|
||||||
class="posting-stats-button"
|
type="button"
|
||||||
disabled={postingStatsUIState === 'loading'}
|
class="posting-stats-button"
|
||||||
onClick={() => {
|
disabled={postingStatsUIState === 'loading'}
|
||||||
renderPostingStats();
|
onClick={() => {
|
||||||
}}
|
renderPostingStats();
|
||||||
>
|
|
||||||
<div
|
|
||||||
class={`posting-stats-bar posting-stats-icon ${
|
|
||||||
postingStatsUIState === 'loading' ? 'loading' : ''
|
|
||||||
}`}
|
|
||||||
style={{
|
|
||||||
'--originals-percentage': '33%',
|
|
||||||
'--replies-percentage': '66%',
|
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
View post stats{' '}
|
<div
|
||||||
{/* <Loader
|
class={`posting-stats-bar posting-stats-icon ${
|
||||||
|
postingStatsUIState === 'loading' ? 'loading' : ''
|
||||||
|
}`}
|
||||||
|
style={{
|
||||||
|
'--originals-percentage': '33%',
|
||||||
|
'--replies-percentage': '66%',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
View post stats{' '}
|
||||||
|
{/* <Loader
|
||||||
abrupt
|
abrupt
|
||||||
hidden={postingStatsUIState !== 'loading'}
|
hidden={postingStatsUIState !== 'loading'}
|
||||||
/> */}
|
/> */}
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<RelatedActions
|
<RelatedActions
|
||||||
|
@ -939,7 +941,7 @@ function RelatedActions({
|
||||||
|
|
||||||
accountID.current = currentID;
|
accountID.current = currentID;
|
||||||
|
|
||||||
if (moved) return;
|
// if (moved) return;
|
||||||
|
|
||||||
setRelationshipUIState('loading');
|
setRelationshipUIState('loading');
|
||||||
|
|
||||||
|
@ -1437,7 +1439,7 @@ function RelatedActions({
|
||||||
{!relationship && relationshipUIState === 'loading' && (
|
{!relationship && relationshipUIState === 'loading' && (
|
||||||
<Loader abrupt />
|
<Loader abrupt />
|
||||||
)}
|
)}
|
||||||
{!!relationship && (
|
{!!relationship && !moved && (
|
||||||
<MenuConfirm
|
<MenuConfirm
|
||||||
confirm={following || requested}
|
confirm={following || requested}
|
||||||
confirmLabel={
|
confirmLabel={
|
||||||
|
|
Loading…
Add table
Reference in a new issue