fix(admin): unbreak ci:check on PR2b (TS2454 + missing fr translation) #237
@@ -21,6 +21,10 @@
|
|||||||
<source>Users — APF Portal Admin</source>
|
<source>Users — APF Portal Admin</source>
|
||||||
<target>Utilisateurs — Administration APF Portal</target>
|
<target>Utilisateurs — Administration APF Portal</target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="route.user-scopes.title" datatype="html">
|
||||||
|
<source>User scopes — APF Portal Admin</source>
|
||||||
|
<target>Périmètres utilisateur — Administration APF Portal</target>
|
||||||
|
</trans-unit>
|
||||||
<trans-unit id="route.profile.title" datatype="html">
|
<trans-unit id="route.profile.title" datatype="html">
|
||||||
<source>Profile — APF Portal Admin</source>
|
<source>Profile — APF Portal Admin</source>
|
||||||
<target>Profil — Administration APF Portal</target>
|
<target>Profil — Administration APF Portal</target>
|
||||||
|
|||||||
@@ -194,7 +194,15 @@ export class UserScopesService {
|
|||||||
// ADR-0026 PR 1's "no FK on UserScope.value" rationale lets the
|
// ADR-0026 PR 1's "no FK on UserScope.value" rationale lets the
|
||||||
// value persist even after the target is decommissioned, so we
|
// value persist even after the target is decommissioned, so we
|
||||||
// validate only at the write path.
|
// validate only at the write path.
|
||||||
let exists: boolean;
|
//
|
||||||
|
// Initialise `exists = false` so TypeScript sees it as definitely
|
||||||
|
// assigned regardless of how the switch lands (the type-system
|
||||||
|
// can't see that `VALUE_BEARING_KINDS.has` already narrowed
|
||||||
|
// `kind` to the three branches). If somehow a non-value-bearing
|
||||||
|
// kind reached this code, the false default makes the next `if`
|
||||||
|
// throw with the same friendly "does not match" message — safe
|
||||||
|
// by construction.
|
||||||
|
let exists = false;
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case 'etablissement':
|
case 'etablissement':
|
||||||
exists =
|
exists =
|
||||||
|
|||||||
Reference in New Issue
Block a user