Skip to content

Commit

Permalink
Search: Disable "More than %{n} pictures found" notification #1187
Browse files Browse the repository at this point in the history
It can be misleading, since the count refers to files, not pictures.

Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed Sep 20, 2023
1 parent dcbb0cb commit 67472ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions frontend/src/page/album/photos.vue
Expand Up @@ -444,8 +444,7 @@ export default {
this.$notify.info(this.$gettextInterpolate(this.$gettext("%{n} pictures found"), {n: this.results.length}));
}
} else {
this.$notify.info(this.$gettextInterpolate(this.$gettext("More than %{n} pictures found"), {n: 100}));
// this.$notify.info(this.$gettextInterpolate(this.$gettext("More than %{n} pictures found"), {n: 100}));
this.$nextTick(() => {
if (this.$root.$el.clientHeight <= window.document.documentElement.clientHeight + 300) {
this.$emit("scrollRefresh");
Expand Down
5 changes: 1 addition & 4 deletions frontend/src/page/photos.vue
Expand Up @@ -565,10 +565,7 @@ export default {
this.$notify.info(this.$gettextInterpolate(this.$gettext("%{n} pictures found"), {n: this.results.length}));
}
} else {
if (!this.embedded) {
this.$notify.info(this.$gettextInterpolate(this.$gettext("More than %{n} pictures found"), {n: 100}));
}
// this.$notify.info(this.$gettextInterpolate(this.$gettext("More than %{n} pictures found"), {n: 100}));
this.$nextTick(() => {
if (this.$root.$el.clientHeight <= window.document.documentElement.clientHeight + 300) {
this.$emit("scrollRefresh");
Expand Down

0 comments on commit 67472ec

Please sign in to comment.