Browse Source

fix: deleted sites response key and content filter dropdown

- Fix /api/sites/deleted returning {shops} instead of {sites}
- Add all 13 content categories to Content page filter dropdown
fszontagh 3 months ago
parent
commit
ace92ec7b5
2 changed files with 11 additions and 2 deletions
  1. 2 2
      src/api/components/SitesEndpoint.ts
  2. 9 0
      web/src/components/pages/ContentPage.ts

+ 2 - 2
src/api/components/SitesEndpoint.ts

@@ -946,9 +946,9 @@ export class SitesEndpoint extends BaseEndpointComponent {
         return;
       }
 
-      const shops = this.db.getDeletedSites();
+      const sites = this.db.getDeletedSites();
 
-      res.json({ shops });
+      res.json({ sites });
     } catch (error) {
       logger.error('Error listing deleted sites', error);
       res.status(500).json({ error: 'Internal server error' });

+ 9 - 0
web/src/components/pages/ContentPage.ts

@@ -89,6 +89,15 @@ export class ContentPage {
                 <option value="contacts">Contacts</option>
                 <option value="terms">Terms & Conditions</option>
                 <option value="faq">FAQ</option>
+                <option value="services">Services</option>
+                <option value="about">About</option>
+                <option value="team">Team</option>
+                <option value="blog">Blog</option>
+                <option value="pricing">Pricing</option>
+                <option value="testimonials">Testimonials</option>
+                <option value="gallery">Gallery</option>
+                <option value="landing">Landing Pages</option>
+                <option value="other">Other</option>
               </select>
             </div>
             <div>