add plugin hub link (#5155)

This commit is contained in:
Mark Kim 2022-09-09 05:40:22 -04:00 committed by GitHub
parent 150e3ef5ef
commit 1338f211dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ import {
PLUGIN_PATH, PLUGIN_PATH,
} from '../../../common/constants'; } from '../../../common/constants';
import { docsPlugins } from '../../../common/documentation'; import { docsPlugins } from '../../../common/documentation';
import { clickLink } from '../../../common/electron-helpers';
import { delay } from '../../../common/misc'; import { delay } from '../../../common/misc';
import * as models from '../../../models'; import * as models from '../../../models';
import type { Settings } from '../../../models/settings'; import type { Settings } from '../../../models/settings';
@ -330,7 +331,19 @@ export class Plugins extends PureComponent<Props, State> {
<hr /> <hr />
<div className="text-right"> <div className="text-right">
<Button onClick={this._handleCreatePlugin}>Generate New Plugin</Button> <Button
onClick={() => {
clickLink('https://insomnia.rest/plugins');
}}
>
Browse Plugin Hub
</Button>
<Button
style={{
marginLeft: '0.3em',
}}
onClick={this._handleCreatePlugin}
>Generate New Plugin</Button>
<Button <Button
style={{ style={{
marginLeft: '0.3em', marginLeft: '0.3em',