cleanup
This commit is contained in:
parent
eb77c5dbb9
commit
6ae52e192b
4 changed files with 0 additions and 4 deletions
|
|
@ -254,7 +254,6 @@ const getNodeInfo = async ({ store }) => {
|
||||||
const data = await res.json()
|
const data = await res.json()
|
||||||
const metadata = data.metadata
|
const metadata = data.metadata
|
||||||
const features = metadata.features
|
const features = metadata.features
|
||||||
console.log(features)
|
|
||||||
store.dispatch('setInstanceOption', { name: 'name', value: metadata.nodeName })
|
store.dispatch('setInstanceOption', { name: 'name', value: metadata.nodeName })
|
||||||
store.dispatch('setInstanceOption', { name: 'registrationOpen', value: data.openRegistrations })
|
store.dispatch('setInstanceOption', { name: 'registrationOpen', value: data.openRegistrations })
|
||||||
store.dispatch('setInstanceOption', { name: 'mediaProxyAvailable', value: features.includes('media_proxy') })
|
store.dispatch('setInstanceOption', { name: 'mediaProxyAvailable', value: features.includes('media_proxy') })
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ const BlockCard = {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
unblockUser () {
|
unblockUser () {
|
||||||
this.progress = true
|
|
||||||
this.$store.dispatch('unblockUser', this.user.id)
|
this.$store.dispatch('unblockUser', this.user.id)
|
||||||
},
|
},
|
||||||
blockUser () {
|
blockUser () {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ const MuteCard = {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
unmuteUser () {
|
unmuteUser () {
|
||||||
this.progress = true
|
|
||||||
this.$store.dispatch('unmuteUser', this.userId)
|
this.$store.dispatch('unmuteUser', this.userId)
|
||||||
},
|
},
|
||||||
muteUser () {
|
muteUser () {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@ const blockUser = (store, args) => {
|
||||||
|
|
||||||
return store.rootState.api.backendInteractor.blockUser({ id, expiresIn })
|
return store.rootState.api.backendInteractor.blockUser({ id, expiresIn })
|
||||||
.then((relationship) => {
|
.then((relationship) => {
|
||||||
console.log(relationship)
|
|
||||||
store.commit('updateUserRelationship', [relationship])
|
store.commit('updateUserRelationship', [relationship])
|
||||||
store.commit('addBlockId', id)
|
store.commit('addBlockId', id)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue