Skip to content

Commit

Permalink
Don't auto-open parabol panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed Feb 7, 2025
1 parent 4c6f1d3 commit 5dfa100
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 9 additions & 10 deletions packages/mattermost-plugin/components/Sidepanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ const SidePanelRoot = () => {
{loggedIn ? (
<SidePanel />
) : (
<div
>
<p
className='py-4'
>
You are not logged in to Parabol.<br />Please <a href={`${pluginServerRoute}/parabol/signin`}>sign in</a> or <a href={`${pluginServerRoute}/parabol/create-account`}>create an account</a> and retry.
<div>
<p className='py-4'>
You are not logged in to Parabol.
<br />
Please <a href={`${pluginServerRoute}/parabol/signin`}>sign in</a> or{' '}
<a href={`${pluginServerRoute}/parabol/create-account`}>create an account</a> and retry.
</p>
<button

className='btn btn-primary'
onClick={atmosphere.login}>Retry</button>
<button className='btn btn-primary' onClick={atmosphere.login}>
Retry
</button>
</div>
)}
</div>
Expand Down
2 changes: 0 additions & 2 deletions packages/mattermost-plugin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ export const init = async (registry: PluginRegistry, store: Store<GlobalState, A
() => store.dispatch(toggleRHSPlugin),
'Open Parabol Panel'
)
// TODO remove
store.dispatch(toggleRHSPlugin)

registry.registerWebSocketEventHandler(`custom_${manifest.id}_start`, () => {
store.dispatch(openStartActivityModal())
Expand Down

0 comments on commit 5dfa100

Please sign in to comment.