From 4cf402ff21c26fa9b82d2ea956ceb7ce8533146a Mon Sep 17 00:00:00 2001
From: taehoon
Date: Thu, 25 Apr 2019 04:19:22 -0400
Subject: migrate SubscribeButton to the existing common component
---
.../subscribe_button/subscribe_button.js | 26 ----------------------
1 file changed, 26 deletions(-)
delete mode 100644 src/components/subscribe_button/subscribe_button.js
(limited to 'src/components/subscribe_button/subscribe_button.js')
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
- })
- }
- }
-}
--
cgit v1.2.3-70-g09d2