From 2ccf18c944809fd8fd27ce963b373b7e22f38507 Mon Sep 17 00:00:00 2001 From: Prakash P S Date: Thu, 12 Oct 2023 11:55:14 +0530 Subject: [PATCH] removing archive to show pending channels Signed-off-by: Prakash P S --- .../src/components/Channels/Channels.js | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/packages/apollo/src/components/Channels/Channels.js b/packages/apollo/src/components/Channels/Channels.js index 1bb1c63d..f2392d6a 100644 --- a/packages/apollo/src/components/Channels/Channels.js +++ b/packages/apollo/src/components/Channels/Channels.js @@ -654,26 +654,6 @@ class ChannelComponent extends Component { const items = []; if (isCreateChannelFeatureAvailable) { items.push({ - id: 'toggle_archived_channels', - text: this.props.history.location.search === '?visibility=all' ? 'hide_archived_channels' : 'show_archived_channels', - fn: () => { - if (this.props.history.location.search === '?visibility=all') { - this.props.history.push('/channels'); - this.props.updateState(SCOPE, { - showingAllChannels: false - }); - } else { - this.props.history.push('?visibility=all'); - if (this.props.pending_osn_channels.length === 0) { - this.getAllOrdererChannels({ visibility: 'all' }); - } - this.props.updateState(SCOPE, { - showingAllChannels: true - }); - } - }, - icon: this.props.history.location.search === '?visibility=all' ? 'visibilityOff' : 'visibilityOn', - }, { id: 'create_channel', text: 'create_channel', fn: () => { @@ -733,13 +713,13 @@ class ChannelComponent extends Component { emptyImage={emptyImage} emptyTitle="empty_pending_channels_title" emptyMessage="empty_pending_channels_text" - containerTitle={this.props.showingAllChannels ? 'osn_channels' : 'pending_osn_channels'} + containerTitle="pending_osn_channels" containerTooltip="channels_desc_orderer" tooltipDirection="right" id="test__channels2--add--tile" itemId="pending_osn_channels" loading={this.props.orderer_loading} - items={this.props.showingAllChannels ? this.props.pending_osn_channels : []} + items={this.props.pending_osn_channels} listMapping={[ { header: 'name',