pull/217/head
Atul Varma 2021-08-22 12:19:23 -04:00
rodzic f16f6ff576
commit f0453aae4d
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -86,7 +86,11 @@ to have the following configured:
service cloud.firestore { service cloud.firestore {
match /databases/{database}/documents { match /databases/{database}/documents {
match /{document=**} { match /{document=**} {
// The gallery is globally readable.
allow read: if true; allow read: if true;
// We don't yet support submitting to the gallery, so
// deny all writes for now.
allow write: if false; allow write: if false;
} }
} }

Wyświetl plik

@ -33,6 +33,10 @@ export const GalleryPage: React.FC<{}> = () => {
return ( return (
<Page title="Gallery!"> <Page title="Gallery!">
<div className="sidebar"> <div className="sidebar">
<p>
This gallery is a work in progress! You can't yet submit anything to
it, and we have no thumbnails either. It will improve over time.
</p>
<button onClick={ctx.refresh} disabled={ctx.isLoading}> <button onClick={ctx.refresh} disabled={ctx.isLoading}>
{ctx.isLoading ? "Loading\u2026" : "Refresh"} {ctx.isLoading ? "Loading\u2026" : "Refresh"}
</button> </button>