Skip to content

Commit c844fa0

Browse files
committed
feat: address PR comments
1 parent a2bdb64 commit c844fa0

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

projects/wc/src/app/components/organization-management/organization-management.component.ts

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
1-
import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation, effect, inject, input, linkedSignal, signal } from '@angular/core';
1+
import {
2+
ChangeDetectionStrategy,
3+
Component,
4+
OnInit,
5+
ViewEncapsulation,
6+
effect,
7+
inject,
8+
input,
9+
linkedSignal,
10+
signal,
11+
} from '@angular/core';
212
import { FormsModule } from '@angular/forms';
313
import { LuigiClient } from '@luigi-project/client/luigi-element';
4-
import { EnvConfigService, I18nService, Resource, ResourceDefinition } from '@openmfp/portal-ui-lib';
5-
import { ResourceNodeContext, ResourceService } from '@platform-mesh/portal-ui-lib/services';
14+
import {
15+
EnvConfigService,
16+
I18nService,
17+
Resource,
18+
ResourceDefinition,
19+
} from '@openmfp/portal-ui-lib';
20+
import {
21+
ResourceNodeContext,
22+
ResourceService,
23+
} from '@platform-mesh/portal-ui-lib/services';
624
import {
725
generateGraphQLFields,
826
isLocalSetup,
@@ -126,10 +144,10 @@ export class OrganizationManagementComponent implements OnInit {
126144

127145
private getMessageForOrganizationCreation(orgName: string) {
128146
if (isLocalSetup()) {
129-
return `A new organization has just been onboarded. Since the portal runs on localhost, you need to add the organization to your machine's hosts file in order to switch to it. Add the following entry to your hosts configuration: 127.0.0.1 ${orgName}.portal.dev.local`;
147+
return `A new organization has been onboarded. Since the portal runs on localhost, you need to add the organization to your machine's hosts file in order to switch to it. Add the following entry to your hosts configuration: 127.0.0.1 ${orgName}.portal.dev.local`;
130148
}
131149

132-
return 'New organization has been created, select it from the list to switch to it.';
150+
return 'A new organization has been created. Select it from the list to switch.';
133151
}
134152

135153
private readTranslations() {
@@ -193,4 +211,4 @@ export class OrganizationManagementComponent implements OnInit {
193211
const port = window.location.port ? `:${window.location.port}` : '';
194212
window.location.href = `${protocol}//${fullSubdomain}${port}`;
195213
}
196-
}
214+
}

0 commit comments

Comments
 (0)