chore: 🤖 translation check and label (#2110)

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2024-01-24 15:21:51 -08:00
1 parent 842a84296a
commit 2e1cba641c
2 files changed
+14 -6

No files matched your search

@@ -7,7 +7,6 @@ import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { notifySuccess, notifyError } from 'core/decorators/notify';
import { STATE_SESSION_RECORDING_AVAILABLE } from 'api/models/session-recording';
export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConnectionRoute extends Route {
// =services
@@ -58,10 +57,10 @@ export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConne
*/
@action
@notifyError(({ message }) => message, { catch: true })
@notifySuccess(({ state }) =>
state === STATE_SESSION_RECORDING_AVAILABLE
? 'resources.policy.messages.reapply'
: 'resources.policy.messages.later',
@notifySuccess(({ end_time }) =>
!end_time
? 'resources.policy.messages.later'
: 'resources.policy.messages.reapply',
)
async reapplyStoragepolicy(sessionRecording) {
await sessionRecording.reapplyStoragePolicy();
@@ -252,7 +252,16 @@
@model.sessionRecording.retain_until
}}
>
{{format-date-iso @model.sessionRecording.retain_until}}
{{#if
(eq
(format-date-iso @model.sessionRecording.retain_until)
'9999-12-31T23:23:23.999Z'
)
}}
{{t 'resources.policy.titles.forever'}}
{{else}}
{{format-date-iso @model.sessionRecording.retain_until}}
{{/if}}
</time>
</list.Item>
{{/if}}