fix: Facebook reauthorization mailer (#4695)

This commit is contained in:
Tejaswini Chile
2022-06-07 17:50:51 +05:30
committed by GitHub
parent bad24f97ab
commit 772d92a4d3
9 changed files with 49 additions and 5 deletions

View File

@@ -34,6 +34,7 @@
:label-color="child.color"
:should-truncate="child.truncateLabel"
:icon="computedInboxClass(child)"
:warning-icon="computedInboxErrorClass(child)"
/>
<router-link
v-if="showItem(menuItem)"
@@ -63,7 +64,10 @@
import { mapGetters } from 'vuex';
import adminMixin from '../../../mixins/isAdmin';
import { getInboxClassByType } from 'dashboard/helper/inbox';
import {
getInboxClassByType,
getInboxWarningIconClass,
} from 'dashboard/helper/inbox';
import SecondaryChildNavItem from './SecondaryChildNavItem';
@@ -136,6 +140,15 @@ export default {
const classByType = getInboxClassByType(type, phoneNumber);
return classByType;
},
computedInboxErrorClass(child) {
const { type, reauthorizationRequired } = child;
if (!type) return '';
const warningClass = getInboxWarningIconClass(
type,
reauthorizationRequired
);
return warningClass;
},
newLinkClick(e, navigate) {
if (this.menuItem.newLinkRouteName) {
navigate(e);