@igo2/context 21.0.0-next.52 → 21.0.0-next.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3140,19 +3140,11 @@ class ContextPermissionItemComponent {
|
|
|
3140
3140
|
user = input(...(ngDevMode ? [undefined, { debugName: "user" }] : /* istanbul ignore next */ []));
|
|
3141
3141
|
type = computed(() => {
|
|
3142
3142
|
const permission = this.permission();
|
|
3143
|
-
return isContextPermissionUser(permission)
|
|
3144
|
-
? this.isUserExtranet(permission)
|
|
3145
|
-
? 'Extranet'
|
|
3146
|
-
: 'Intranet'
|
|
3147
|
-
: 'Profil';
|
|
3143
|
+
return isContextPermissionUser(permission) ? 'Intranet' : 'Profil';
|
|
3148
3144
|
}, ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
3149
3145
|
icon = computed(() => {
|
|
3150
3146
|
const permission = this.permission();
|
|
3151
|
-
return permission.profilType === 'user'
|
|
3152
|
-
? this.isUserExtranet(permission)
|
|
3153
|
-
? 'person'
|
|
3154
|
-
: 'person_shield'
|
|
3155
|
-
: 'badge';
|
|
3147
|
+
return permission.profilType === 'user' ? 'person_shield' : 'badge';
|
|
3156
3148
|
}, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
3157
3149
|
canDelete = computed(() => {
|
|
3158
3150
|
const permission = this.permission();
|
|
@@ -3162,10 +3154,6 @@ class ContextPermissionItemComponent {
|
|
|
3162
3154
|
}, ...(ngDevMode ? [{ debugName: "canDelete" }] : /* istanbul ignore next */ []));
|
|
3163
3155
|
delete = output();
|
|
3164
3156
|
isContextPermissionUser = isContextPermissionUser;
|
|
3165
|
-
isUserExtranet(permission) {
|
|
3166
|
-
return (isContextPermissionUser(permission) &&
|
|
3167
|
-
permission.userSource.includes('extranet'));
|
|
3168
|
-
}
|
|
3169
3157
|
onDelete() {
|
|
3170
3158
|
this.delete.emit(this.permission());
|
|
3171
3159
|
}
|