diff --git a/src/components/account_actions/account_actions.js b/src/components/account_actions/account_actions.js
index 6d345bc7..ed1388a1 100644
--- a/src/components/account_actions/account_actions.js
+++ b/src/components/account_actions/account_actions.js
@@ -1,6 +1,7 @@
import { mapState } from 'vuex'
import ProgressButton from '../progress_button/progress_button.vue'
import Popover from '../popover/popover.vue'
+import ModerationTools from '../moderation_tools/moderation_tools.vue'
const AccountActions = {
props: [
@@ -11,7 +12,8 @@ const AccountActions = {
},
components: {
ProgressButton,
- Popover
+ Popover,
+ ModerationTools
},
methods: {
showRepeats () {
@@ -20,6 +22,12 @@ const AccountActions = {
hideRepeats () {
this.$store.dispatch('hideReblogs', this.user.id)
},
+ muteUser () {
+ this.$store.dispatch('muteUser', this.user.id)
+ },
+ unmuteUser () {
+ this.$store.dispatch('unmuteUser', this.user.id)
+ },
blockUser () {
this.$store.dispatch('blockUser', this.user.id)
},
@@ -34,9 +42,15 @@ const AccountActions = {
name: 'chat',
params: { recipient_id: this.user.id }
})
+ },
+ mentionUser () {
+ this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
}
},
computed: {
+ loggedIn () {
+ return this.$store.state.users.currentUser
+ },
...mapState({
pleromaChatMessagesAvailable: state => state.instance.pleromaChatMessagesAvailable
})
diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue
index 987e94b7..d2b2e8fe 100644
--- a/src/components/account_actions/account_actions.vue
+++ b/src/components/account_actions/account_actions.vue
@@ -30,6 +30,20 @@
class="dropdown-divider"
/>
+
+
+
+
+
-
-
+
@@ -74,7 +103,7 @@
diff --git a/src/components/tab_switcher/tab_switcher.scss b/src/components/tab_switcher/tab_switcher.scss
index d2ef4857..fea21b66 100644
--- a/src/components/tab_switcher/tab_switcher.scss
+++ b/src/components/tab_switcher/tab_switcher.scss
@@ -175,16 +175,16 @@
}
&:not(.active) {
- z-index: 4;
+ z-index: 2;
&:hover {
- z-index: 6;
+ z-index: 4;
}
}
&.active {
background: transparent;
- z-index: 5;
+ z-index: 3;
color: $fallback--text;
color: var(--tabActiveText, $fallback--text);
}
@@ -216,7 +216,7 @@
&::after {
content: '';
position: absolute;
- z-index: 7;
+ z-index: 5;
}
}
}
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
index 5f66f036..d341bb7a 100644
--- a/src/components/user_card/user_card.js
+++ b/src/components/user_card/user_card.js
@@ -111,12 +111,6 @@ export default {
FollowButton
},
methods: {
- muteUser () {
- this.$store.dispatch('muteUser', this.user.id)
- },
- unmuteUser () {
- this.$store.dispatch('unmuteUser', this.user.id)
- },
subscribeUser () {
return this.$store.dispatch('subscribeUser', this.user.id)
},
@@ -150,9 +144,6 @@ export default {
}
this.$store.dispatch('setMedia', [attachment])
this.$store.dispatch('setCurrent', attachment)
- },
- mentionUser () {
- this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
}
}
}
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue
index 5f7861b2..f6dcec60 100644
--- a/src/components/user_card/user_card.vue
+++ b/src/components/user_card/user_card.vue
@@ -59,11 +59,6 @@
>
-