diff --git a/client/src/modules/bdwebapi.js b/client/src/modules/bdwebapi.js index 2c38062f..941c4a72 100644 --- a/client/src/modules/bdwebapi.js +++ b/client/src/modules/bdwebapi.js @@ -56,7 +56,7 @@ async function dummyThemes() { author: dummyAuthor }); } - return { docs: dummies }; + return { docs: dummies, total: 25 }; } export default class BdWebApi { diff --git a/client/src/styles/partials/bdsettings/contentview.scss b/client/src/styles/partials/bdsettings/contentview.scss index 4f14f420..1fc44cdc 100644 --- a/client/src/styles/partials/bdsettings/contentview.scss +++ b/client/src/styles/partials/bdsettings/contentview.scss @@ -19,7 +19,15 @@ } .bd-onlinePhHeader { - padding: 0 20px 0 0; + display: flex; + padding: 0 20px 0 10px; + min-height: 40px; + + .bd-searchHint { + flex-grow: 1; + line-height: 40px; + color: #fff; + } } .bd-onlinePhBody { diff --git a/client/src/ui/components/bd/ThemesView.vue b/client/src/ui/components/bd/ThemesView.vue index c3e737d8..5c45007a 100644 --- a/client/src/ui/components/bd/ThemesView.vue +++ b/client/src/ui/components/bd/ThemesView.vue @@ -29,6 +29,7 @@
+
{{searchHint}}
@@ -66,7 +67,8 @@ localThemes: ThemeManager.localThemes, onlineThemes: null, loadingOnline: false, - loadingMore: false + loadingMore: false, + searchHint: '' }; }, components: { @@ -86,11 +88,14 @@ await this.ThemeManager.refreshThemes(); }, async refreshOnline() { + this.searchHint = ''; if (this.loadingOnline || this.loadingMore) return; this.loadingOnline = true; try { const getThemes = await BdWebApi.themes.get(); this.onlineThemes = getThemes; + if (!this.onlineThemes.docs) return; + this.searchHint = `${this.onlineThemes.total} Results`; } catch (err) { Logger.err('ThemesView', err); } finally {