web/satellite: update naming of Team page
References to the Team page have been modified to refer to its new name. Previously, it was called Project Members or Users. Resolves #5761 Change-Id: I71ababe48847d7573f6abbbdb6b24c621b0abd4f
This commit is contained in:
parent
768e69b55a
commit
50afaa411e
@ -215,7 +215,7 @@ const navigation: NavigationLink[] = [
|
||||
RouteConfig.ProjectDashboard.withIcon(DashboardIcon),
|
||||
RouteConfig.Buckets.withIcon(BucketsIcon),
|
||||
RouteConfig.AccessGrants.withIcon(AccessGrantsIcon),
|
||||
RouteConfig.Users.withIcon(UsersIcon),
|
||||
RouteConfig.Team.withIcon(UsersIcon),
|
||||
];
|
||||
|
||||
const bucketsStore = useBucketsStore();
|
||||
|
@ -115,7 +115,7 @@ const navigation: NavigationLink[] = [
|
||||
RouteConfig.ProjectDashboard.withIcon(DashboardIcon),
|
||||
RouteConfig.Buckets.withIcon(BucketsIcon),
|
||||
RouteConfig.AccessGrants.withIcon(AccessGrantsIcon),
|
||||
RouteConfig.Users.withIcon(UsersIcon),
|
||||
RouteConfig.Team.withIcon(UsersIcon),
|
||||
];
|
||||
|
||||
const resourcesDropdownYPos = ref<number>(0);
|
||||
|
@ -233,7 +233,7 @@ async function onProjectSelected(projectID: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (router.currentRoute.name === RouteConfig.Users.name) {
|
||||
if (router.currentRoute.name === RouteConfig.Team.name) {
|
||||
try {
|
||||
await pmStore.getProjectMembers(FIRST_PAGE, selectedProject.value.id);
|
||||
} catch (error) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
<template>
|
||||
<div class="team-header-container">
|
||||
<div class="team-header-container__title-area">
|
||||
<h1 class="team-header-container__title-area__title" aria-roledescription="title">Project Members</h1>
|
||||
<h1 class="team-header-container__title-area__title" aria-roledescription="title">Team</h1>
|
||||
<VInfo class="team-header-container__title-area__info-button">
|
||||
<template #icon>
|
||||
<InfoIcon />
|
||||
@ -97,7 +97,7 @@ import VButton from '@/components/common/VButton.vue';
|
||||
|
||||
import InfoIcon from '@/../static/images/team/infoTooltip.svg';
|
||||
|
||||
declare interface ClearSearch {
|
||||
interface ClearSearch {
|
||||
clearSearch(): void;
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ const FIRST_PAGE = 1;
|
||||
const analytics: AnalyticsHttpApi = new AnalyticsHttpApi();
|
||||
|
||||
const isDeleteClicked = ref<boolean>(false);
|
||||
const headerComponent = ref<VHeader & ClearSearch>();
|
||||
const headerComponent = ref<typeof VHeader & ClearSearch>();
|
||||
|
||||
const isDefaultState = computed((): boolean => {
|
||||
return props.headerState === 0;
|
||||
|
@ -72,7 +72,7 @@ export abstract class RouteConfig {
|
||||
public static Account = new NavigationLink('/account', 'Account');
|
||||
public static AccountSettings = new NavigationLink('/account-settings', 'Account Settings');
|
||||
public static ProjectDashboard = new NavigationLink('/project-dashboard', 'Dashboard');
|
||||
public static Users = new NavigationLink('/project-members', 'Users');
|
||||
public static Team = new NavigationLink('/team', 'Team');
|
||||
public static OnboardingTour = new NavigationLink('/onboarding-tour', 'Onboarding Tour');
|
||||
public static CreateProject = new NavigationLink('/create-project', 'Create Project');
|
||||
public static EditProjectDetails = new NavigationLink('/edit-project-details', 'Edit Project Details');
|
||||
@ -234,8 +234,8 @@ export const router = new Router({
|
||||
component: ProjectDashboard,
|
||||
},
|
||||
{
|
||||
path: RouteConfig.Users.path,
|
||||
name: RouteConfig.Users.name,
|
||||
path: RouteConfig.Team.path,
|
||||
name: RouteConfig.Team.name,
|
||||
component: ProjectMembersArea,
|
||||
},
|
||||
{
|
||||
|
@ -141,8 +141,8 @@ async function selectProject() {
|
||||
*/
|
||||
async function goToProjectMembers(): Promise<void> {
|
||||
await selectProject();
|
||||
analytics.pageVisit(RouteConfig.Users.path);
|
||||
router.push(RouteConfig.Users.path);
|
||||
analytics.pageVisit(RouteConfig.Team.path);
|
||||
router.push(RouteConfig.Team.path);
|
||||
closeDropDown();
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ describe('Dashboard', () => {
|
||||
it('loads routes correctly when authorithed without project with unavailable routes', async () => {
|
||||
const unavailableWithoutProject = [
|
||||
RouteConfig.AccessGrants.path,
|
||||
RouteConfig.Users.path,
|
||||
RouteConfig.Team.path,
|
||||
RouteConfig.ProjectDashboard.path,
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user