Shivam Mishra
2024-10-02 13:06:30 +05:30
committed by GitHub
parent e0bf2bd9d4
commit 42f6621afb
661 changed files with 15939 additions and 31194 deletions

View File

@@ -10,6 +10,7 @@ import { BUS_EVENTS } from 'shared/constants/busEvents';
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
import { DirectUpload } from 'activestorage';
import { mapGetters } from 'vuex';
import { emitter } from 'shared/helpers/mitt';
export default {
components: { FluentIcon, FileUpload, Spinner },
@@ -78,7 +79,7 @@ export default {
upload.create((error, blob) => {
if (error) {
this.$emitter.emit(BUS_EVENTS.SHOW_ALERT, {
emitter.emit(BUS_EVENTS.SHOW_ALERT, {
message: error,
});
} else {
@@ -89,7 +90,7 @@ export default {
}
});
} else {
this.$emitter.emit(BUS_EVENTS.SHOW_ALERT, {
emitter.emit(BUS_EVENTS.SHOW_ALERT, {
message: this.$t('FILE_SIZE_LIMIT', {
MAXIMUM_FILE_UPLOAD_SIZE: this.fileUploadSizeLimit,
}),
@@ -112,7 +113,7 @@ export default {
...this.getLocalFileAttributes(file),
});
} else {
this.$emitter.emit(BUS_EVENTS.SHOW_ALERT, {
emitter.emit(BUS_EVENTS.SHOW_ALERT, {
message: this.$t('FILE_SIZE_LIMIT', {
MAXIMUM_FILE_UPLOAD_SIZE: this.fileUploadSizeLimit,
}),