mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-07 16:18:47 +00:00
Hide verify button
This commit is contained in:
@@ -167,6 +167,10 @@ export default function GeneralPage() {
|
|||||||
const [isCheckingCache, setIsCheckingCache] = useState(false);
|
const [isCheckingCache, setIsCheckingCache] = useState(false);
|
||||||
const [isRebuildingCache, setIsRebuildingCache] = useState(false);
|
const [isRebuildingCache, setIsRebuildingCache] = useState(false);
|
||||||
|
|
||||||
|
// get "imp" from local storage to determine if we should show the verify button (imp = "1" means show)
|
||||||
|
const showVerifyButton =
|
||||||
|
typeof window !== "undefined" && localStorage.getItem("imp") === "1";
|
||||||
|
|
||||||
const handleRebuildCache = async () => {
|
const handleRebuildCache = async () => {
|
||||||
if (!client.clientId) return;
|
if (!client.clientId) return;
|
||||||
setIsRebuildingCache(true);
|
setIsRebuildingCache(true);
|
||||||
@@ -904,7 +908,7 @@ export default function GeneralPage() {
|
|||||||
</SettingsSection>
|
</SettingsSection>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Hidden cache verification — subtle button, dev/admin diagnostic */}
|
{showVerifyButton && (
|
||||||
<div className="mt-8 flex flex-col gap-2 items-start opacity-30 hover:opacity-100 transition-opacity">
|
<div className="mt-8 flex flex-col gap-2 items-start opacity-30 hover:opacity-100 transition-opacity">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -946,7 +950,9 @@ export default function GeneralPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Extra site resources: [
|
Extra site resources: [
|
||||||
{cacheCheck.extraSiteResourceIds.join(", ")}
|
{cacheCheck.extraSiteResourceIds.join(
|
||||||
|
", "
|
||||||
|
)}
|
||||||
]
|
]
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -972,6 +978,7 @@ export default function GeneralPage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</SettingsContainer>
|
</SettingsContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user