Skip to content

Commit 2c49e0d

Browse files
Modified Dialog box and context menu strs
1 parent 27a02d3 commit 2c49e0d

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

  • contentcuration/contentcuration/frontend/channelList/views/Channel

contentcuration/contentcuration/frontend/channelList/views/Channel/ChannelItem.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@
190190
icon="trash"
191191
/>
192192
</VListTileAvatar>
193-
<VListTileTitle>{{ $tr('deleteChannel') }}</VListTileTitle>
193+
<VListTileTitle>
194+
{{ canEdit ? $tr('deleteChannel') : $tr('removeChannel') }}
195+
</VListTileTitle>
194196
</VListTile>
195197
</VList>
196198
</Menu>
@@ -202,14 +204,14 @@
202204
<!-- Delete dialog -->
203205
<KModal
204206
v-if="deleteDialog"
205-
:title="$tr('deleteTitle')"
206-
:submitText="$tr('deleteChannel')"
207+
:title="canEdit ? $tr('deleteTitle') : $tr('removeTitle')"
208+
:submitText="canEdit ? $tr('deleteChannel') : $tr('removeBtn')"
207209
:cancelText="$tr('cancel')"
208210
data-test="delete-modal"
209211
@submit="handleDelete"
210212
@cancel="deleteDialog = false"
211213
>
212-
{{ $tr('deletePrompt') }}
214+
{{ canEdit ? $tr('deletePrompt') : $tr('removePrompt') }}
213215
</KModal>
214216
<!-- Copy dialog -->
215217
<ChannelTokenModal
@@ -382,7 +384,12 @@
382384
copyToken: 'Copy channel token',
383385
deleteChannel: 'Delete channel',
384386
deleteTitle: 'Delete this channel',
387+
removeChannel: 'Remove from channel list',
388+
removeBtn: 'Remove',
389+
removeTitle: 'Remove from channel list',
385390
deletePrompt: 'This channel will be permanently deleted. This cannot be undone.',
391+
removePrompt:
392+
'You have view-only access to this channel. Confirm that you want to remove it from your list of channels.',
386393
channelDeletedSnackbar: 'Channel deleted',
387394
channelLanguageNotSetIndicator: 'No language set',
388395
cancel: 'Cancel',

0 commit comments

Comments
 (0)