Skip to content

Commit

Permalink
refactor(admin): access apply new components naming
Browse files Browse the repository at this point in the history
  • Loading branch information
er-lim committed Dec 4, 2024
1 parent 94aea91 commit 58ab31b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
14 changes: 7 additions & 7 deletions admin/app/components/login-form.gjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PixButton from '@1024pix/pix-ui/components/pix-button';
import PixInput from '@1024pix/pix-ui/components/pix-input';
import PixMessage from '@1024pix/pix-ui/components/pix-message';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import { on } from '@ember/modifier';
import { action } from '@ember/object';
import { LinkTo } from '@ember/routing';
Expand Down Expand Up @@ -94,22 +94,22 @@ export default class LoginForm extends Component {
</LinkTo>

{{#if @userShouldCreateAnAccount}}
<PixMessage @type="alert">
<PixNotificationAlert @type="alert">
Vous n'avez pas de compte Pix.
</PixMessage>
</PixNotificationAlert>
{{/if}}

{{#if @unknownErrorHasOccured}}
<PixMessage @type="alert">
<PixNotificationAlert @type="alert">
Une erreur est survenue. Veuillez recommencer ou contacter les administrateurs de la plateforme.
</PixMessage>
</PixNotificationAlert>
{{/if}}

{{#if @userShouldRequestAccess}}
<PixMessage @type="alert">
<PixNotificationAlert @type="alert">
Vous n'avez pas les droits pour vous connecter. Veuillez demander un accès aux administrateurs de la
plateforme.
</PixMessage>
</PixNotificationAlert>
{{/if}}
{{else}}
<PixInput
Expand Down
10 changes: 5 additions & 5 deletions admin/app/components/organizations/information-section-view.gjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PixButton from '@1024pix/pix-ui/components/pix-button';
import PixButtonLink from '@1024pix/pix-ui/components/pix-button-link';
import PixMessage from '@1024pix/pix-ui/components/pix-message';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import PixTag from '@1024pix/pix-ui/components/pix-tag';
import { LinkTo } from '@ember/routing';
import { service } from '@ember/service';
Expand Down Expand Up @@ -72,9 +72,9 @@ export default class OrganizationInformationSection extends Component {
{{/each}}
</ul>
{{else}}
<PixMessage class="organization-information-section__missing-tags-message" @type="information">Cette
<PixNotificationAlert class="organization-information-section__missing-tags-message" @type="information">Cette
organisation n'a pas de tags.
</PixMessage>
</PixNotificationAlert>
{{/if}}
<div class="organization__network-label">
{{#if this.hasOrganizationChildren}}
Expand All @@ -100,12 +100,12 @@ export default class OrganizationInformationSection extends Component {
{{/if}}
</div>
{{#if @organization.isArchived}}
<PixMessage class="organization-information-section__archived-message" @type="warning">
<PixNotificationAlert class="organization-information-section__archived-message" @type="warning">
Archivée le
{{@organization.archivedFormattedDate}}
par
{{@organization.archivistFullName}}.
</PixMessage>
</PixNotificationAlert>
{{/if}}

<div class="organization-information-section__content">
Expand Down
9 changes: 6 additions & 3 deletions admin/app/components/users/user-overview.gjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PixButton from '@1024pix/pix-ui/components/pix-button';
import PixButtonLink from '@1024pix/pix-ui/components/pix-button-link';
import PixInput from '@1024pix/pix-ui/components/pix-input';
import PixMessage from '@1024pix/pix-ui/components/pix-message';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import PixSelect from '@1024pix/pix-ui/components/pix-select';
import PixTooltip from '@1024pix/pix-ui/components/pix-tooltip';
import { fn } from '@ember/helper';
Expand Down Expand Up @@ -275,9 +275,12 @@ export default class UserOverview extends Component {
{{else}}
<div>
{{#if @user.hasBeenAnonymised}}
<PixMessage @type="warning" class="user-detail-personal-information-section__anonymisation-message">
<PixNotificationAlert
@type="warning"
class="user-detail-personal-information-section__anonymisation-message"
>
{{this.anonymisationMessage}}
</PixMessage>
</PixNotificationAlert>
{{/if}}
</div>
<div class="user-detail-personal-information-section__content">
Expand Down

0 comments on commit 58ab31b

Please sign in to comment.