aboutsummaryrefslogtreecommitdiff
path: root/src/components/subscribe_button/subscribe_button.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-04-25 04:19:22 -0400
committertaehoon <th.dev91@gmail.com>2019-07-10 21:01:07 -0400
commit4cf402ff21c26fa9b82d2ea956ceb7ce8533146a (patch)
treef3b67be92abced7217abdacafecaf55eeaf348bf /src/components/subscribe_button/subscribe_button.js
parentd5e8315e83327c7b8dda71eca5dd1c9d7d0a23dc (diff)
migrate SubscribeButton to the existing common component
Diffstat (limited to 'src/components/subscribe_button/subscribe_button.js')
-rw-r--r--src/components/subscribe_button/subscribe_button.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/components/subscribe_button/subscribe_button.js b/src/components/subscribe_button/subscribe_button.js
deleted file mode 100644
index e3a2842c..00000000
--- a/src/components/subscribe_button/subscribe_button.js
+++ /dev/null
@@ -1,26 +0,0 @@
-export default {
- props: [ 'user' ],
- data () {
- return {
- inProgress: false
- }
- },
- methods: {
- subscribe () {
- this.inProgress = true
- this.$store.state.api.backendInteractor.subscribeUser(this.user.id)
- .then((updated) => {
- console.log(updated)
- this.inProgress = false
- })
- },
- unsubscribe () {
- this.inProgress = true
- this.$store.state.api.backendInteractor.unsubscribeUser(this.user.id)
- .then((updated) => {
- console.log(updated)
- this.inProgress = false
- })
- }
- }
-}