Frontend: Change photo album success messages

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-27 10:51:23 +02:00
parent 8edb849aaf
commit 92d096fe88
2 changed files with 10 additions and 10 deletions

View file

@ -194,7 +194,7 @@
this.offset = offset; this.offset = offset;
if (this.results.length > 1) { if (this.results.length > 1) {
this.$notify.info(this.$gettext('All ') + this.results.length + this.$gettext(' photos loaded')); this.$notify.info(this.$gettext('All ') + this.results.length + this.$gettext(' entries loaded'));
} }
} else { } else {
this.offset = offset + count; this.offset = offset + count;
@ -279,14 +279,14 @@
if (this.scrollDisabled) { if (this.scrollDisabled) {
if (!this.results.length) { if (!this.results.length) {
this.$notify.warn(this.$gettext("No photos found")); this.$notify.warn(this.$gettext("No entries found"));
} else if (this.results.length === 1) { } else if (this.results.length === 1) {
this.$notify.info(this.$gettext("One photo found")); this.$notify.info(this.$gettext("One entry found"));
} else { } else {
this.$notify.info(this.results.length + this.$gettext(" photos found")); this.$notify.info(this.results.length + this.$gettext(" entries found"));
} }
} else { } else {
this.$notify.info(this.$gettext('More than 50 photos found')); this.$notify.info(this.$gettext('More than 50 entries found'));
this.$nextTick(() => this.$emit("scrollRefresh")); this.$nextTick(() => this.$emit("scrollRefresh"));
} }

View file

@ -237,7 +237,7 @@
this.offset = offset; this.offset = offset;
if (this.results.length > 1) { if (this.results.length > 1) {
this.$notify.info(this.$gettext('All ') + this.results.length + this.$gettext(' photos loaded')); this.$notify.info(this.$gettext('All ') + this.results.length + this.$gettext(' entries loaded'));
} }
} else { } else {
this.offset = offset + count; this.offset = offset + count;
@ -322,14 +322,14 @@
if (this.scrollDisabled) { if (this.scrollDisabled) {
if (!this.results.length) { if (!this.results.length) {
this.$notify.warn(this.$gettext("No photos found")); this.$notify.warn(this.$gettext("No entries found"));
} else if (this.results.length === 1) { } else if (this.results.length === 1) {
this.$notify.info(this.$gettext("One photo found")); this.$notify.info(this.$gettext("One entry found"));
} else { } else {
this.$notify.info(this.results.length + this.$gettext(" photos found")); this.$notify.info(this.results.length + this.$gettext(" entries found"));
} }
} else { } else {
this.$notify.info(this.$gettext('More than 50 photos found')); this.$notify.info(this.$gettext('More than 50 entries found'));
this.$nextTick(() => this.$emit("scrollRefresh")); this.$nextTick(() => this.$emit("scrollRefresh"));
} }