1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 15:53:18 +00:00

revert usage of THING translations

This commit is contained in:
Kyle Spearrin
2018-07-10 08:39:05 -04:00
parent a6bd9ecfa3
commit 5ade229cb9
7 changed files with 102 additions and 94 deletions

View File

@@ -111,8 +111,7 @@ export class GroupAddEditComponent implements OnInit {
await this.formPromise;
this.analytics.eventTrack.next({ action: this.editMode ? 'Edited Group' : 'Created Group' });
this.toasterService.popAsync('success', null,
this.i18nService.t(this.editMode ? 'editedThing' : 'createdThing',
this.i18nService.t('group').toLocaleLowerCase(), this.name));
this.i18nService.t(this.editMode ? 'editedGroupId' : 'createdGroupId', this.name));
this.onSavedGroup.emit();
} catch { }
}
@@ -133,8 +132,7 @@ export class GroupAddEditComponent implements OnInit {
this.deletePromise = this.apiService.deleteGroup(this.organizationId, this.groupId);
await this.deletePromise;
this.analytics.eventTrack.next({ action: 'Deleted Group' });
this.toasterService.popAsync('success', null,
this.i18nService.t('deletedThing', this.i18nService.t('group').toLocaleLowerCase(), this.name));
this.toasterService.popAsync('success', null, this.i18nService.t('deletedGroupId', this.name));
this.onDeletedGroup.emit();
} catch { }
}