Skip to content

Commit 7c9b5c4

Browse files
committed
fixed linting errors
Signed-off-by: pallavibakale <pallavibakale09@gmail.com>
1 parent edb59f1 commit 7c9b5c4

2 files changed

Lines changed: 464 additions & 488 deletions

File tree

src/mixins/RouterMixin.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import { ROUTE_CIRCLE, ROUTE_USER_GROUP } from '../models/constants.ts';
6+
import { ROUTE_CIRCLE, ROUTE_USER_GROUP } from '../models/constants.ts'
77

88
export default {
9-
computed: {
10-
// router variables
11-
selectedContact() {
12-
return this.$route.params.selectedContact;
13-
},
14-
selectedGroup() {
15-
const { name } = this.$route;
16-
if (name === 'circle') return ROUTE_CIRCLE;
17-
if (name === 'user_group') return ROUTE_USER_GROUP;
18-
return this.$route.params.selectedGroup;
19-
},
20-
selectedCircle() {
21-
return this.$route.params.selectedCircle;
22-
},
23-
selectedUserGroup() {
24-
return this.$route.params.selectedUserGroup;
25-
},
26-
selectedChart() {
27-
return this.$route.params.selectedChart;
28-
},
29-
},
30-
};
9+
computed: {
10+
// router variables
11+
selectedContact() {
12+
return this.$route.params.selectedContact
13+
},
14+
selectedGroup() {
15+
const { name } = this.$route
16+
if (name === 'circle') { return ROUTE_CIRCLE }
17+
if (name === 'user_group') { return ROUTE_USER_GROUP }
18+
return this.$route.params.selectedGroup
19+
},
20+
selectedCircle() {
21+
return this.$route.params.selectedCircle
22+
},
23+
selectedUserGroup() {
24+
return this.$route.params.selectedUserGroup
25+
},
26+
selectedChart() {
27+
return this.$route.params.selectedChart
28+
},
29+
},
30+
}

0 commit comments

Comments
 (0)