Skip to content

Commit

Permalink
fix: telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Oct 15, 2023
1 parent 77189d5 commit 4ab6cd4
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/components/telegram/bot/users/panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<ext-spacer/>

<ext-button iconCls="fa-solid fa-redo" :text="l10n(`Refresh`)" @tap="refresh"/>

<ext-button iconCls="fa-solid fa-table-columns" pressed="true" :tooltip="l10n(`Toggle user details panel`)" @tap="toggleDetailsPanel"/>
</ext-toolbar>
</template>

Expand All @@ -27,7 +25,7 @@
</CardsPanel>

<!-- details panel -->
<ext-panel ref="detailsPanel" docked="right" headerPosition="left" layout="fit" minWidth="400" resizable='{"edges":"west","snap":200,"split":true}' :title="l10n(`User details`)" width="400">
<ext-panel ref="detailsPanel" collapsible="right" docked="right" headerPosition="left" layout="fit" minWidth="400" resizable='{"edges":"west","snap":200,"split":true}' :title="l10n(`User details`)" width="400">
<DetailsPanel :telegramBotUserRecord="telegramBotUserRecord"/>
</ext-panel>
</ext-panel>
Expand Down Expand Up @@ -119,20 +117,6 @@ export default {
this.store.removeFilter( "search" );
}
},
toggleDetailsPanel ( e ) {
const button = e.detail.sender,
pressed = button.getPressed();
button.setPressed( !pressed );
if ( !pressed ) {
this.$refs.detailsPanel.ext.show();
}
else {
this.$refs.detailsPanel.ext.hide();
}
},
},
};
</script>

0 comments on commit 4ab6cd4

Please sign in to comment.