@monoui/vuejs 1.1.71 → 1.1.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.71",
3
+ "version": "1.1.73",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -309,16 +309,6 @@
309
309
 
310
310
  <b-dropdown-divider />
311
311
 
312
- <b-dropdown-item
313
- :to="{
314
- name: 'Exports'
315
- }"
316
- target="_blank"
317
- >
318
- <mui-icon icon="link" class="mr-1" />
319
- Go Downloads
320
- </b-dropdown-item>
321
-
322
312
  <slot name="pagination-export-item"></slot>
323
313
  </b-dropdown>
324
314
  </template>
@@ -709,6 +699,29 @@ export default {
709
699
  initialLoad = false,
710
700
  exportScope = 0
711
701
  ) {
702
+ if (exportScope !== 0) {
703
+ let result = await this.requestFunction(
704
+ this.filters,
705
+ this.sorting,
706
+ currentPage,
707
+ itemPerPage,
708
+ exportScope
709
+ );
710
+ if (result && result.status === 200) {
711
+ this.$successToast(
712
+ "Export Started",
713
+ "The export process has begun. Please wait... Once completed, you can download it from the Reports/Exports page."
714
+ );
715
+ } else {
716
+ this.$errorToast(
717
+ "Export Failed",
718
+ "An error occurred while exporting the data. Please try again."
719
+ );
720
+ }
721
+
722
+ return;
723
+ }
724
+
712
725
  this.isLoading = true;
713
726
  this.$emit("loading", this.isLoading);
714
727
  const { currentPage, itemPerPage } = this.settings;