diff --git a/frontend/src/pages/library/errors.vue b/frontend/src/pages/library/errors.vue index 4c931e0cb..a43ccd0cb 100644 --- a/frontend/src/pages/library/errors.vue +++ b/frontend/src/pages/library/errors.vue @@ -20,10 +20,10 @@ - {{ err.Level }} + {{ err.Level }} @@ -37,6 +37,33 @@ When PhotoPrism found broken files or there are other potential issues, you'll see a short message on this page. + + + + + {{ details.err.Level | capitalize }} + + + + {{ localTime(details.err.Time) }} + + + + {{ details.err.Message }} + + + + + + Close + + + + @@ -55,10 +82,18 @@ pageSize: 100, offset: 0, page: 0, + details: { + show: false, + err: {"Level": "", "Message": "", "Time": ""}, + }, loading: false, }; }, methods: { + showDetails(err) { + this.details.err = err; + this.details.show = true; + }, reload() { if (this.loading) { return; @@ -105,7 +140,18 @@ level(s) { return s.substr(0, 4).toUpperCase(); }, + localTime(s) { + if (!s) { + return this.$gettext("Unknown"); + } + + return DateTime.fromISO(s).toLocaleString(DateTime.DATETIME_FULL_WITH_SECONDS); + }, formatTime(s) { + if (!s) { + return this.$gettext("Unknown"); + } + return DateTime.fromISO(s).toFormat("yyyy-LL-dd HH:mm:ss"); }, },