diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 12:25:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 12:25:00 +0900 |
| commit | 6909add1ec991cf4f9fdcc05978520f30414f576 (patch) | |
| tree | 18eeb26555e82ebd4079db3a8291b807f2cc9a75 /src/client | |
| parent | Update CHANGELOG.md (diff) | |
| download | misskey-6909add1ec991cf4f9fdcc05978520f30414f576.tar.gz misskey-6909add1ec991cf4f9fdcc05978520f30414f576.tar.bz2 misskey-6909add1ec991cf4f9fdcc05978520f30414f576.zip | |
Drop stalk feature
Resolve #3935
Closes #2226
Closes #1946
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/desktop/views/pages/user/user.profile.vue | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/client/app/desktop/views/pages/user/user.profile.vue b/src/client/app/desktop/views/pages/user/user.profile.vue index 22cbf6546f..5f424432a9 100644 --- a/src/client/app/desktop/views/pages/user/user.profile.vue +++ b/src/client/app/desktop/views/pages/user/user.profile.vue @@ -3,10 +3,6 @@ <div class="friend-form" v-if="$store.state.i.id != user.id"> <mk-follow-button :user="user" block/> <p class="followed" v-if="user.isFollowed">{{ $t('follows-you') }}</p> - <p class="stalk" v-if="user.isFollowing"> - <span v-if="user.isStalking">{{ $t('stalking') }} <a @click="unstalk"><fa icon="meh"/> {{ $t('unstalk') }}</a></span> - <span v-if="!user.isStalking"><a @click="stalk"><fa icon="user-secret"/> {{ $t('stalk') }}</a></span> - </p> </div> <div class="action-form"> <ui-button @click="menu" ref="menu">{{ $t('menu') }}</ui-button> @@ -24,26 +20,6 @@ export default Vue.extend({ props: ['user'], methods: { - stalk() { - this.$root.api('following/stalk', { - userId: this.user.id - }).then(() => { - this.user.isStalking = true; - }, () => { - alert('error'); - }); - }, - - unstalk() { - this.$root.api('following/unstalk', { - userId: this.user.id - }).then(() => { - this.user.isStalking = false; - }, () => { - alert('error'); - }); - }, - menu() { this.$root.new(XUserMenu, { source: this.$refs.menu.$el, @@ -78,9 +54,6 @@ export default Vue.extend({ background #eefaff border-radius 4px - > .stalk - margin 12px 0 0 0 - > .action-form padding 16px text-align center |