revert usage of THING translations
This commit is contained in:
parent
a6bd9ecfa3
commit
5ade229cb9
|
@ -82,8 +82,7 @@ export class EntityUsersComponent implements OnInit {
|
||||||
this.analytics.eventTrack.next({ action: 'Removed User From Collection' });
|
this.analytics.eventTrack.next({ action: 'Removed User From Collection' });
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toasterService.popAsync('success', null,
|
this.toasterService.popAsync('success', null, this.i18nService.t('removedUserId', user.email));
|
||||||
this.i18nService.t('removedThing', this.i18nService.t('user').toLocaleLowerCase(), user.email));
|
|
||||||
this.onRemovedUser.emit();
|
this.onRemovedUser.emit();
|
||||||
const index = this.users.indexOf(user);
|
const index = this.users.indexOf(user);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
|
|
|
@ -99,6 +99,7 @@ export class EventsComponent implements OnInit {
|
||||||
userEmail: user != null ? user.email : '',
|
userEmail: user != null ? user.email : '',
|
||||||
date: r.date,
|
date: r.date,
|
||||||
ip: r.ipAddress,
|
ip: r.ipAddress,
|
||||||
|
type: r.type,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="externalId">{{'externalId' | i18n}}</label>
|
<label for="externalId">{{'externalId' | i18n}}</label>
|
||||||
<input id="externalId" class="form-control" type="text" name="ExternalId" [(ngModel)]="externalId">
|
<input id="externalId" class="form-control" type="text" name="ExternalId" [(ngModel)]="externalId">
|
||||||
<small class="form-text text-muted">{{'externalIdDesc' | i18n : ('group' | i18n).toLocaleLowerCase()}}</small>
|
<small class="form-text text-muted">{{'externalIdGroupDesc' | i18n}}</small>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="mt-4">{{'accessControl' | i18n}}</h3>
|
<h3 class="mt-4">{{'accessControl' | i18n}}</h3>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<th>{{'collection' | i18n}}</th>
|
<th>{{'collections' | i18n}}</th>
|
||||||
<th width="100" class="text-center">{{'readOnly' | i18n}}</th>
|
<th width="100" class="text-center">{{'readOnly' | i18n}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -111,8 +111,7 @@ export class GroupAddEditComponent implements OnInit {
|
||||||
await this.formPromise;
|
await this.formPromise;
|
||||||
this.analytics.eventTrack.next({ action: this.editMode ? 'Edited Group' : 'Created Group' });
|
this.analytics.eventTrack.next({ action: this.editMode ? 'Edited Group' : 'Created Group' });
|
||||||
this.toasterService.popAsync('success', null,
|
this.toasterService.popAsync('success', null,
|
||||||
this.i18nService.t(this.editMode ? 'editedThing' : 'createdThing',
|
this.i18nService.t(this.editMode ? 'editedGroupId' : 'createdGroupId', this.name));
|
||||||
this.i18nService.t('group').toLocaleLowerCase(), this.name));
|
|
||||||
this.onSavedGroup.emit();
|
this.onSavedGroup.emit();
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
|
@ -133,8 +132,7 @@ export class GroupAddEditComponent implements OnInit {
|
||||||
this.deletePromise = this.apiService.deleteGroup(this.organizationId, this.groupId);
|
this.deletePromise = this.apiService.deleteGroup(this.organizationId, this.groupId);
|
||||||
await this.deletePromise;
|
await this.deletePromise;
|
||||||
this.analytics.eventTrack.next({ action: 'Deleted Group' });
|
this.analytics.eventTrack.next({ action: 'Deleted Group' });
|
||||||
this.toasterService.popAsync('success', null,
|
this.toasterService.popAsync('success', null, this.i18nService.t('deletedGroupId', this.name));
|
||||||
this.i18nService.t('deletedThing', this.i18nService.t('group').toLocaleLowerCase(), this.name));
|
|
||||||
this.onDeletedGroup.emit();
|
this.onDeletedGroup.emit();
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,8 +98,7 @@ export class GroupsComponent implements OnInit {
|
||||||
try {
|
try {
|
||||||
await this.apiService.deleteGroup(this.organizationId, group.id);
|
await this.apiService.deleteGroup(this.organizationId, group.id);
|
||||||
this.analytics.eventTrack.next({ action: 'Deleted Group' });
|
this.analytics.eventTrack.next({ action: 'Deleted Group' });
|
||||||
this.toasterService.popAsync('success', null,
|
this.toasterService.popAsync('success', null, this.i18nService.t('deletedGroupId', group.name));
|
||||||
this.i18nService.t('deletedThing', this.i18nService.t('group').toLocaleLowerCase(), group.name));
|
|
||||||
const index = this.groups.indexOf(group);
|
const index = this.groups.indexOf(group);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
this.groups.splice(index, 1);
|
this.groups.splice(index, 1);
|
||||||
|
|
|
@ -64,16 +64,13 @@ export class EventService {
|
||||||
break;
|
break;
|
||||||
// Cipher
|
// Cipher
|
||||||
case EventType.Cipher_Created:
|
case EventType.Cipher_Created:
|
||||||
msg = this.i18nService.t('createdThing', this.i18nService.t('item').toLocaleLowerCase(),
|
msg = this.i18nService.t('createdItemId', this.formatCipherId(ev, options));
|
||||||
this.formatCipherId(ev, options));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Cipher_Updated:
|
case EventType.Cipher_Updated:
|
||||||
msg = this.i18nService.t('editedThing', this.i18nService.t('item').toLocaleLowerCase(),
|
msg = this.i18nService.t('editedItemId', this.formatCipherId(ev, options));
|
||||||
this.formatCipherId(ev, options));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Cipher_Deleted:
|
case EventType.Cipher_Deleted:
|
||||||
msg = this.i18nService.t('deletedThing', this.i18nService.t('item').toLocaleLowerCase(),
|
msg = this.i18nService.t('deletedItemId', this.formatCipherId(ev, options));
|
||||||
this.formatCipherId(ev, options));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Cipher_AttachmentCreated:
|
case EventType.Cipher_AttachmentCreated:
|
||||||
msg = this.i18nService.t('createdAttachmentForItem', this.formatCipherId(ev, options));
|
msg = this.i18nService.t('createdAttachmentForItem', this.formatCipherId(ev, options));
|
||||||
|
@ -82,37 +79,30 @@ export class EventService {
|
||||||
msg = this.i18nService.t('deletedAttachmentForItem', this.formatCipherId(ev, options));
|
msg = this.i18nService.t('deletedAttachmentForItem', this.formatCipherId(ev, options));
|
||||||
break;
|
break;
|
||||||
case EventType.Cipher_Shared:
|
case EventType.Cipher_Shared:
|
||||||
msg = this.i18nService.t('sharedThing', this.i18nService.t('item').toLocaleLowerCase(),
|
msg = this.i18nService.t('sharedItemId', this.formatCipherId(ev, options));
|
||||||
this.formatCipherId(ev, options));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Cipher_UpdatedCollections:
|
case EventType.Cipher_UpdatedCollections:
|
||||||
msg = this.i18nService.t('editedCollectionsForItem', this.formatCipherId(ev, options));
|
msg = this.i18nService.t('editedCollectionsForItem', this.formatCipherId(ev, options));
|
||||||
break;
|
break;
|
||||||
// Collection
|
// Collection
|
||||||
case EventType.Collection_Created:
|
case EventType.Collection_Created:
|
||||||
msg = this.i18nService.t('createdThing', this.i18nService.t('collection').toLocaleLowerCase(),
|
msg = this.i18nService.t('createdCollectionId', this.formatCollectionId(ev));
|
||||||
this.formatCollectionId(ev));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Collection_Updated:
|
case EventType.Collection_Updated:
|
||||||
msg = this.i18nService.t('editedThing', this.i18nService.t('collection').toLocaleLowerCase(),
|
msg = this.i18nService.t('editedCollectionId', this.formatCollectionId(ev));
|
||||||
this.formatCollectionId(ev));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Collection_Deleted:
|
case EventType.Collection_Deleted:
|
||||||
msg = this.i18nService.t('deletedThing', this.i18nService.t('collection').toLocaleLowerCase(),
|
msg = this.i18nService.t('deletedCollectionId', this.formatCollectionId(ev));
|
||||||
this.formatCollectionId(ev));
|
|
||||||
break;
|
break;
|
||||||
// Group
|
// Group
|
||||||
case EventType.Group_Created:
|
case EventType.Group_Created:
|
||||||
msg = this.i18nService.t('createdThing', this.i18nService.t('group').toLocaleLowerCase(),
|
msg = this.i18nService.t('createdGroupId', this.formatGroupId(ev));
|
||||||
this.formatGroupId(ev));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Group_Updated:
|
case EventType.Group_Updated:
|
||||||
msg = this.i18nService.t('editedThing', this.i18nService.t('group').toLocaleLowerCase(),
|
msg = this.i18nService.t('editedGroupId', this.formatGroupId(ev));
|
||||||
this.formatGroupId(ev));
|
|
||||||
break;
|
break;
|
||||||
case EventType.Group_Deleted:
|
case EventType.Group_Deleted:
|
||||||
msg = this.i18nService.t('deletedThing', this.i18nService.t('group').toLocaleLowerCase(),
|
msg = this.i18nService.t('deletedGroupId', this.formatGroupId(ev));
|
||||||
this.formatGroupId(ev));
|
|
||||||
break;
|
break;
|
||||||
// Org user
|
// Org user
|
||||||
case EventType.OrganizationUser_Invited:
|
case EventType.OrganizationUser_Invited:
|
||||||
|
@ -122,12 +112,10 @@ export class EventService {
|
||||||
msg = this.i18nService.t('confirmedUser', this.formatOrgUserId(ev));
|
msg = this.i18nService.t('confirmedUser', this.formatOrgUserId(ev));
|
||||||
break;
|
break;
|
||||||
case EventType.OrganizationUser_Updated:
|
case EventType.OrganizationUser_Updated:
|
||||||
msg = this.i18nService.t('editedThing', this.i18nService.t('user').toLocaleLowerCase(),
|
msg = this.i18nService.t('editedUserId', this.formatOrgUserId(ev));
|
||||||
this.formatOrgUserId(ev));
|
|
||||||
break;
|
break;
|
||||||
case EventType.OrganizationUser_Removed:
|
case EventType.OrganizationUser_Removed:
|
||||||
msg = this.i18nService.t('removedThing', this.i18nService.t('user').toLocaleLowerCase(),
|
msg = this.i18nService.t('removedUserId', this.formatOrgUserId(ev));
|
||||||
this.formatOrgUserId(ev));
|
|
||||||
break;
|
break;
|
||||||
case EventType.OrganizationUser_UpdatedGroups:
|
case EventType.OrganizationUser_UpdatedGroups:
|
||||||
msg = this.i18nService.t('editedGroupsForUser', this.formatOrgUserId(ev));
|
msg = this.i18nService.t('editedGroupsForUser', this.formatOrgUserId(ev));
|
||||||
|
|
|
@ -1727,14 +1727,8 @@
|
||||||
"externalId": {
|
"externalId": {
|
||||||
"message": "External Id"
|
"message": "External Id"
|
||||||
},
|
},
|
||||||
"externalIdDesc": {
|
"externalIdGroupDesc": {
|
||||||
"message": "The external id is used to link this $THING$ to an external system such as a directory.",
|
"message": "The external id is used to link this group to an external system such as a user directory."
|
||||||
"placeholders": {
|
|
||||||
"thing": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "group"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"accessControl": {
|
"accessControl": {
|
||||||
"message": "Access Control"
|
"message": "Access Control"
|
||||||
|
@ -1844,73 +1838,102 @@
|
||||||
"editedOrgSettings": {
|
"editedOrgSettings": {
|
||||||
"message": "Edited organization settings."
|
"message": "Edited organization settings."
|
||||||
},
|
},
|
||||||
"createdThing": {
|
"createdItemId": {
|
||||||
"message": "Created $THING$ $ID$.",
|
"message": "Created item $ID$.",
|
||||||
"description": "Created item 'Google'.",
|
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"thing": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "item"
|
|
||||||
},
|
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$2",
|
"content": "$1",
|
||||||
"example": "Google"
|
"example": "Google"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"editedThing": {
|
"editedItemId": {
|
||||||
"message": "Edited $THING$ $ID$.",
|
"message": "Edited item $ID$.",
|
||||||
"description": "Edited item 'Google'.",
|
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"thing": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "item"
|
|
||||||
},
|
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$2",
|
"content": "$1",
|
||||||
"example": "Google"
|
"example": "Google"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"deletedThing": {
|
"deletedItemId": {
|
||||||
"message": "Deleted $THING$ $ID$.",
|
"message": "Deleted item $ID$.",
|
||||||
"description": "Deleted item 'Google'.",
|
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"thing": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "item"
|
|
||||||
},
|
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$2",
|
"content": "$1",
|
||||||
"example": "Google"
|
"example": "Google"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sharedThing": {
|
"sharedItemId": {
|
||||||
"message": "Shared $THING$ $ID$.",
|
"message": "Shared item $ID$.",
|
||||||
"description": "Shared item 'Google'.",
|
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"thing": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "item"
|
|
||||||
},
|
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$2",
|
"content": "$1",
|
||||||
"example": "'Google'"
|
"example": "'Google'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"removedThing": {
|
"createdCollectionId": {
|
||||||
"message": "Removed $THING$ $ID$.",
|
"message": "Created collection $ID$.",
|
||||||
"description": "Shared item 'Google'.",
|
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"thing": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "item"
|
|
||||||
},
|
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$2",
|
"content": "$1",
|
||||||
"example": "Google"
|
"example": "Server Passwords"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"editedCollectionId": {
|
||||||
|
"message": "Edited collection $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "Server Passwords"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"deletedCollectionId": {
|
||||||
|
"message": "Deleted collection $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "Server Passwords"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"createdGroupId": {
|
||||||
|
"message": "Created group $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "Developers"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"editedGroupId": {
|
||||||
|
"message": "Edited group $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "Developers"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"deletedGroupId": {
|
||||||
|
"message": "Deleted group $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "Developers"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"removedUserId": {
|
||||||
|
"message": "Removed user $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "John Smith"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1941,7 +1964,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"invitedUser": {
|
"invitedUserId": {
|
||||||
"message": "Invited user $ID$.",
|
"message": "Invited user $ID$.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"id": {
|
"id": {
|
||||||
|
@ -1950,7 +1973,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"confirmedUser": {
|
"confirmedUserId": {
|
||||||
"message": "Confirmed user $ID$.",
|
"message": "Confirmed user $ID$.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"id": {
|
"id": {
|
||||||
|
@ -1959,6 +1982,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"editedUserId": {
|
||||||
|
"message": "Edited user $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "John Smith"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"editedGroupsForUser": {
|
"editedGroupsForUser": {
|
||||||
"message": "Edited groups for user $ID$.",
|
"message": "Edited groups for user $ID$.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
@ -1968,15 +2000,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"item": {
|
|
||||||
"message": "Item"
|
|
||||||
},
|
|
||||||
"collection": {
|
|
||||||
"message": "Collection"
|
|
||||||
},
|
|
||||||
"group": {
|
|
||||||
"message": "Group"
|
|
||||||
},
|
|
||||||
"device": {
|
"device": {
|
||||||
"message": "Device"
|
"message": "Device"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue