diff --git a/resources/assets/js/pages/admin/booking/uploadInvoice.vue b/resources/assets/js/pages/admin/booking/uploadInvoice.vue index ecce2382..97942305 100644 --- a/resources/assets/js/pages/admin/booking/uploadInvoice.vue +++ b/resources/assets/js/pages/admin/booking/uploadInvoice.vue @@ -58,10 +58,13 @@ - - -

Download

-
+
+ + +

Download

+
+
+
@@ -431,11 +434,12 @@ }, // TODO : refactor into library since many pages are using this getExtension(path){ - return path.slice(-3); + let index = path.lastIndexOf('.') + 1; + return path.slice(index); }, isImage(path){ - var ext = this.getExtension(path); - return ext === 'jpg' || ext === 'jpeg' || ext === 'bmp' || ext === 'png'; + var ext = this.getExtension(path); + return ext === 'jpg' || ext === 'jpeg' || ext === 'bmp' || ext === 'png'; }, getURL(path){ var getUrl = window.location;