Remove unused code
This commit is contained in:
parent
a02047acf8
commit
3ba8bb9bd1
|
@ -33,8 +33,6 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import IconButton from '../IconButton.html'
|
|
||||||
import { FOLLOW_BUTTON_ANIMATION } from '../../_static/animations.js'
|
|
||||||
import { store } from '../../_store/store.js'
|
import { store } from '../../_store/store.js'
|
||||||
import { setAccountFollowed } from '../../_actions/follow.js'
|
import { setAccountFollowed } from '../../_actions/follow.js'
|
||||||
import { setAccountBlocked } from '../../_actions/block.js'
|
import { setAccountBlocked } from '../../_actions/block.js'
|
||||||
|
@ -64,9 +62,6 @@
|
||||||
if (!account.locked) { // be optimistic, show the user that it succeeded
|
if (!account.locked) { // be optimistic, show the user that it succeeded
|
||||||
this.set({ overrideFollowing: newFollowingValue })
|
this.set({ overrideFollowing: newFollowingValue })
|
||||||
}
|
}
|
||||||
if (newFollowingValue) {
|
|
||||||
this.refs.icon.animate(FOLLOW_BUTTON_ANIMATION)
|
|
||||||
}
|
|
||||||
await setAccountFollowed(accountId, newFollowingValue)
|
await setAccountFollowed(accountId, newFollowingValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,9 +99,6 @@
|
||||||
pressed: ({ blocking, following, followRequested }) => (
|
pressed: ({ blocking, following, followRequested }) => (
|
||||||
!blocking && (following || followRequested)
|
!blocking && (following || followRequested)
|
||||||
)
|
)
|
||||||
},
|
|
||||||
components: {
|
|
||||||
IconButton
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -28,10 +28,6 @@ export const FAVORITE_ANIMATION = [
|
||||||
|
|
||||||
export const REBLOG_ANIMATION = FAVORITE_ANIMATION
|
export const REBLOG_ANIMATION = FAVORITE_ANIMATION
|
||||||
|
|
||||||
export const FOLLOW_BUTTON_ANIMATION = [
|
|
||||||
growBigThenSmall
|
|
||||||
]
|
|
||||||
|
|
||||||
export const CHECKMARK_ANIMATION = [
|
export const CHECKMARK_ANIMATION = [
|
||||||
fadeColorToPressedState
|
fadeColorToPressedState
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue