mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 09:33:03 -04:00
Fixes
This commit is contained in:
parent
f3ec0d86eb
commit
9f39648b0f
3 changed files with 127 additions and 1 deletions
|
@ -207,6 +207,12 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
|
|||
*/
|
||||
|
||||
const pluginMeta = PluginMeta[plugin.name];
|
||||
let link: string;
|
||||
if (pluginMeta.folderName.includes("equicordplugins")) {
|
||||
link = `https://github.com/${gitRemote}/tree/main/${pluginMeta.folderName}`;
|
||||
} else {
|
||||
link = `https://github.com/${gitRemote}/tree/main/src/plugins/${pluginMeta.folderName}`;
|
||||
}
|
||||
|
||||
return (
|
||||
<ModalRoot transitionState={transitionState} size={ModalSize.MEDIUM} className="vc-text-selectable">
|
||||
|
@ -228,7 +234,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
|
|||
<div className="vc-settings-modal-links">
|
||||
<GithubButton
|
||||
text="View source code"
|
||||
href={`https://github.com/${gitRemote}/tree/main/src/plugins/${pluginMeta.folderName}`}
|
||||
href={link}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue