mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
renaming channel to topic in ui
This commit is contained in:
parent
282b52d66d
commit
d6c8b71f69
@ -34,7 +34,7 @@ export function Channels({ open, active }) {
|
||||
<ChannelsWrapper>
|
||||
<div class="search">
|
||||
<div class="filter">
|
||||
<Input bordered={false} allowClear={true} placeholder="Channels" prefix={<SearchOutlined />}
|
||||
<Input bordered={false} allowClear={true} placeholder="Topics" prefix={<SearchOutlined />}
|
||||
spellCheck="false" onChange={(e) => actions.onFilter(e.target.value)} />
|
||||
</div>
|
||||
{ state.display === 'small' && (
|
||||
@ -57,11 +57,11 @@ export function Channels({ open, active }) {
|
||||
<div class="bar">
|
||||
<div class="add" onClick={actions.setShowAdd}>
|
||||
<CommentOutlined />
|
||||
<div class="label">New Channel</div>
|
||||
<div class="label">New Topic</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<Modal title="New Channel" centered visible={state.showAdd} footer={addFooter}
|
||||
<Modal title="New Topic" centered visible={state.showAdd} footer={addFooter}
|
||||
onCancel={actions.clearShowAdd}>
|
||||
<AddChannel state={state} actions={actions} />
|
||||
</Modal>
|
||||
|
@ -14,7 +14,7 @@ export function Details({ cardId, channelId, closeDetails, closeConversation, op
|
||||
|
||||
const deleteChannel = async () => {
|
||||
Modal.confirm({
|
||||
title: 'Are you sure you want to delete the channel?',
|
||||
title: 'Are you sure you want to delete the topic?',
|
||||
icon: <ExclamationCircleOutlined />,
|
||||
okText: "Yes, Delete",
|
||||
cancelText: "No, Cancel",
|
||||
@ -32,7 +32,7 @@ export function Details({ cardId, channelId, closeDetails, closeConversation, op
|
||||
}
|
||||
catch(err) {
|
||||
Modal.error({
|
||||
title: 'Failed to Delete Channel',
|
||||
title: 'Failed to Delete Topic',
|
||||
content: 'Please try again.',
|
||||
});
|
||||
}
|
||||
@ -40,7 +40,7 @@ export function Details({ cardId, channelId, closeDetails, closeConversation, op
|
||||
|
||||
const leaveChannel = async () => {
|
||||
Modal.confirm({
|
||||
title: 'Are you sure you want to leave the channel?',
|
||||
title: 'Are you sure you want to leave the topic?',
|
||||
icon: <ExclamationCircleOutlined />,
|
||||
okText: "Yes, Leave",
|
||||
cancelText: "No, Cancel",
|
||||
@ -58,7 +58,7 @@ export function Details({ cardId, channelId, closeDetails, closeConversation, op
|
||||
}
|
||||
catch(err) {
|
||||
Modal.error({
|
||||
title: 'Failed to Leave Channel',
|
||||
title: 'Failed to Leave Topic',
|
||||
content: 'Please try again.',
|
||||
});
|
||||
}
|
||||
@ -93,7 +93,7 @@ export function Details({ cardId, channelId, closeDetails, closeConversation, op
|
||||
return (
|
||||
<DetailsWrapper>
|
||||
<div class="header">
|
||||
<div class="label">Channel</div>
|
||||
<div class="label">Topic</div>
|
||||
{ state.display === 'xlarge' && (
|
||||
<div class="dismiss" onClick={closeConversation}>
|
||||
<DoubleRightOutlined />
|
||||
@ -137,13 +137,13 @@ export function Details({ cardId, channelId, closeDetails, closeConversation, op
|
||||
</div>
|
||||
</div>
|
||||
{ state.host && (
|
||||
<div class="button" onClick={deleteChannel}>Delete Channel</div>
|
||||
<div class="button" onClick={deleteChannel}>Delete Topic</div>
|
||||
)}
|
||||
{ state.host && (
|
||||
<div class="button" onClick={actions.setEditMembers}>Edit Membership</div>
|
||||
)}
|
||||
{ !state.host && (
|
||||
<div class="button" onClick={leaveChannel}>Leave Channel</div>
|
||||
<div class="button" onClick={leaveChannel}>Leave Topic</div>
|
||||
)}
|
||||
<div class="label">Members</div>
|
||||
<div class="members">
|
||||
|
Loading…
Reference in New Issue
Block a user