RosePlugs: add refresh button to its own settings
This commit is contained in:
parent
b743257ecb
commit
3e5943e09c
1 changed files with 11 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
|||
import { React } from "@vendetta/metro/common";
|
||||
import SettingsScaffold from "@shared/ui/SettingsScaffold";
|
||||
import NoteBox from "@shared/ui/NoteBox";
|
||||
import PrimaryButton from "@shared/ui/PrimaryButton";
|
||||
import { showToast } from "@vendetta/ui/toasts";
|
||||
import { clearNexusCache } from "../lib/nexusApi";
|
||||
|
||||
export default function Settings() {
|
||||
return (
|
||||
|
|
@ -9,6 +12,14 @@ export default function Settings() {
|
|||
RosePlugs gathers Rosie's other plugins under their own "Rosie's Plugs" section in
|
||||
Settings, with a quick-install browser for anything not installed yet.
|
||||
</NoteBox>
|
||||
<PrimaryButton
|
||||
label="Refresh plugin list"
|
||||
onPress={() => {
|
||||
clearNexusCache();
|
||||
showToast("Plugin list will refresh next time you open Plugins");
|
||||
}}
|
||||
style={{ margin: 16 }}
|
||||
/>
|
||||
</SettingsScaffold>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue