Browse Source

Merge branch 'master' into bug/ps-136-search-accented-characters

pull/1690/head
gbubemismith 4 years ago
parent
commit
eab8908206
  1. 2
      jslib
  2. 5
      src/app/common/base.events.component.ts
  3. 2
      src/app/layouts/footer.component.html
  4. 2
      src/app/layouts/frontend-layout.component.html
  5. 3
      src/app/services/event.service.ts
  6. 3
      src/locales/en/messages.json

2
jslib

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 9a933640dca4f05150e2cd98165a4743fb471bdc
Subproject commit 3cb94623e2c6a3ac6cf6dbcd516ba23b03a7aee7

5
src/app/common/base.events.component.ts

@ -122,17 +122,20 @@ export abstract class BaseEventsComponent { @@ -122,17 +122,20 @@ export abstract class BaseEventsComponent {
const userId = r.actingUserId == null ? r.userId : r.actingUserId;
const eventInfo = await this.eventService.getEventInfo(r);
const user = this.getUserName(r, userId);
const userName = user != null ? user.name : this.i18nService.t("unknown");
return new EventView({
message: eventInfo.message,
humanReadableMessage: eventInfo.humanReadableMessage,
appIcon: eventInfo.appIcon,
appName: eventInfo.appName,
userId: userId,
userName: user != null ? user.name : this.i18nService.t("unknown"),
userName: r.installationId != null ? `Installation: ${r.installationId}` : userName,
userEmail: user != null ? user.email : "",
date: r.date,
ip: r.ipAddress,
type: r.type,
installationId: r.installationId,
});
})
);

2
src/app/layouts/footer.component.html

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
<div class="container footer text-muted">
<div class="row">
<div class="col">&copy; {{ year }}, Bitwarden Inc.</div>
<div class="col">&copy; {{ year }} Bitwarden Inc.</div>
<div class="col text-center"></div>
<div class="col text-right">
{{ "versionNumber" | i18n: version }}

2
src/app/layouts/frontend-layout.component.html

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<router-outlet></router-outlet>
<div class="container my-5 text-muted text-center">
&copy; {{ year }}, Bitwarden Inc. <br />
&copy; {{ year }} Bitwarden Inc. <br />
{{ "versionNumber" | i18n: version }}
</div>

3
src/app/services/event.service.ts

@ -307,6 +307,9 @@ export class EventService { @@ -307,6 +307,9 @@ export class EventService {
case EventType.Organization_DisabledKeyConnector:
msg = humanReadableMsg = this.i18nService.t("disabledKeyConnector");
break;
case EventType.Organization_SponsorshipsSynced:
msg = humanReadableMsg = this.i18nService.t("sponsorshipsSynced");
break;
// Policies
case EventType.Policy_Updated: {
msg = this.i18nService.t("modifiedPolicyId", this.formatPolicyId(ev));

3
src/locales/en/messages.json

@ -5041,6 +5041,9 @@ @@ -5041,6 +5041,9 @@
"message": "Last Sync",
"Description": "Used as a prefix to indicate the last time a sync occured. Example \"Last sync 1968-11-16 00:00:00\""
},
"sponsorshipsSynced": {
"message": "Self-hosted sponsorships synced."
},
"billingManagedByProvider": {
"message": "Managed by $PROVIDER$",
"placeholders": {

Loading…
Cancel
Save