fix: 🐛 add message for channels that cannot be played back (#302)
* fix: 🐛 Fix isAsciicast check ✅ Closes: ICU-9511 * fix: 🐛 add message for channels that cannot be played back * Update ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.hbs Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com> * refactor: 💡 update not supported message --------- Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
1 parent
4ac6259d2a
commit
63c6d24363
2 files changed
+32
-15
No files matched your search
@@ -252,6 +252,9 @@ session-recording:
|
||||
title: We can't play back this channel because the file is missing
|
||||
description: This likely means the connected storage bucket is misconfigured or the file was deleted.
|
||||
link: Retrieving lost session recordings
|
||||
not-supported:
|
||||
title: Playback is not supported for this channel
|
||||
description: The contents of this channel cannot be replayed.
|
||||
player:
|
||||
back-navigation: Back to channels
|
||||
session:
|
||||
|
||||
+29
-15
@@ -36,7 +36,7 @@
|
||||
{{#if
|
||||
(can 'getAsciicast channel-recording' @model.channelRecording)
|
||||
}}
|
||||
{{! Was not able to downlaod asciicast }}
|
||||
{{! Was not able to download asciicast }}
|
||||
<A.Header
|
||||
@title={{t
|
||||
'resources.session-recording.channel.messages.missing.title'
|
||||
@@ -48,20 +48,34 @@
|
||||
}}
|
||||
/>
|
||||
{{else}}
|
||||
{{! Not authorized to downlaod asciicast }}
|
||||
<A.Header
|
||||
@title={{t
|
||||
'resources.session-recording.channel.messages.none.title'
|
||||
}}
|
||||
/>
|
||||
<A.Body
|
||||
@text={{t
|
||||
'descriptions.cannot-download'
|
||||
resource=(t
|
||||
'resources.session-recording.channel.title_plural'
|
||||
)
|
||||
}}
|
||||
/>
|
||||
{{#if @model.channelRecording.isAsciicast}}
|
||||
{{! Not authorized to download asciicast }}
|
||||
<A.Header
|
||||
@title={{t
|
||||
'resources.session-recording.channel.messages.none.title'
|
||||
}}
|
||||
/>
|
||||
<A.Body
|
||||
@text={{t
|
||||
'descriptions.cannot-download'
|
||||
resource=(t
|
||||
'resources.session-recording.channel.title_plural'
|
||||
)
|
||||
}}
|
||||
/>
|
||||
{{else}}
|
||||
{{! Playback not supported }}
|
||||
<A.Header
|
||||
@title={{t
|
||||
'resources.session-recording.channel.messages.not-supported.title'
|
||||
}}
|
||||
/>
|
||||
<A.Body
|
||||
@text={{t
|
||||
'resources.session-recording.channel.messages.not-supported.description'
|
||||
}}
|
||||
/>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</Hds::ApplicationState>
|
||||
{{/if}}
|
||||
|
||||
Reference in new issue
Block a user