From 0c4f642c686db73e9c1c020b607e71477383ac62 Mon Sep 17 00:00:00 2001 From: Kiran Shrestha Date: Thu, 7 Sep 2023 17:35:29 +1000 Subject: [PATCH] Update Gallery.vue this.$toasted is used for displaying notifications in Nova 3 For Nova 4, Nova object is used --- resources/js/components/Gallery.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/components/Gallery.vue b/resources/js/components/Gallery.vue index 0d6ee240..d7c10066 100644 --- a/resources/js/components/Gallery.vue +++ b/resources/js/components/Gallery.vue @@ -225,7 +225,7 @@ export default { }, validateFileSize(file) { if (this.field.maxFileSize && ((file.size / 1024) > this.field.maxFileSize)) { - this.$toasted.error(this.__( + Nova.error(this.__( 'Maximum file size is :amount MB', {amount: String(this.field.maxFileSize / 1024)} )); @@ -244,7 +244,7 @@ export default { } } - this.$toasted.error(this.__( + Nova.error(this.__( 'File type must be: :types', {types: this.field.allowedFileTypes.join(' / ')} ));