';
- $hamburger = apply_filters(
- 'dokan_vendor_dashboard_menu_hamburger',
- ''
- );
-
- $menu .= $hamburger;
- }
-
- $menu .= '';
-
- if ( $hamburger_menu ) {
- $menu .= '
';
- }
-
- return $menu;
-}
-
-
if ( ! function_exists( 'dokan_store_category_menu' ) ) :
/**
diff --git a/package.json b/package.json
index b3d30ec331..e40adc7380 100644
--- a/package.json
+++ b/package.json
@@ -45,6 +45,7 @@
"vue-template-compiler": "^2.7.14",
"vue-wp-list-table": "^1.3.0",
"vue2-daterange-picker": "^0.6.8",
- "wp-readme-to-markdown": "^1.0.1"
+ "wp-readme-to-markdown": "^1.0.1",
+ "vuedraggable": "^2.24.3"
}
}
diff --git a/src/admin/App.vue b/src/admin/App.vue
index 298d849a5c..822572fd41 100644
--- a/src/admin/App.vue
+++ b/src/admin/App.vue
@@ -1,13 +1,26 @@
-
@@ -45,10 +48,18 @@
-
+ :id="sectionId + '[' + fieldData.name + ']'"
+ :name="sectionId + '[' + fieldData.name + ']'"
+ :value="fieldValue[fieldData.name]"
+ @input="event => inputValueHandler( fieldData.name, event.target.value, fieldValue[fieldData.name] )"
+ />
@@ -69,7 +80,10 @@
+ :name="sectionId + '[' + fieldData.name + ']'"
+ :value="fieldValue[fieldData.name]"
+ @input="event => inputValueHandler( fieldData.name, event.target.value, fieldValue[fieldData.name] )"
+ />
@@ -88,12 +102,26 @@
@@ -114,7 +142,16 @@
@@ -156,7 +193,7 @@
{{ optionVal }}
@@ -179,13 +216,19 @@
class="regular medium"
:name="sectionId + '[' + fieldData.name + ']'"
:id="sectionId + '[' + fieldData.name + ']'"
- v-on:change="e => fieldValue[fieldData.name] = e.target.value"
:value="fieldValue[fieldData.name] ?? fieldData.default ?? ''"
+ @input="event => inputValueHandler( fieldData.name, event.target.value, fieldValue[fieldData.name] ?? fieldData.default ?? '' )"
>
-
@@ -134,6 +144,7 @@
disbursementSchedule: {},
isSaveConfirm: false,
dokanAssetsUrl: dokan.urls.assetsUrl,
+ disableSubmit: false,
}
},
@@ -576,6 +587,11 @@
this.settingFields = dokan.settings_fields;
window.addEventListener( 'scroll', this.handleScroll );
},
+ mounted() {
+ this.$root.$on('setting-submit-status', ( status ) => {
+ this.disableSubmit = status;
+ } );
+ },
};
diff --git a/src/admin/pages/VendorPaymentFields.vue b/src/admin/pages/VendorPaymentFields.vue
index 718d4c2b02..97a28256d1 100644
--- a/src/admin/pages/VendorPaymentFields.vue
+++ b/src/admin/pages/VendorPaymentFields.vue
@@ -205,27 +205,18 @@ export default {
methods: {
setValue( status, key ) {
if ( 'enabled' === key ) {
- if ( status ) {
- this.vendorInfo.enabled = true;
- } else {
- this.vendorInfo.enabled = false;
- }
+ this.vendorInfo.enabled = status;
+ this.enabled = status;
}
if ( 'trusted' === key ) {
- if ( status ) {
- this.vendorInfo.trusted = true;
- } else {
- this.vendorInfo.trusted = false;
- }
+ this.vendorInfo.trusted = status;
+ this.trusted = status;
}
if ( 'featured' === key ) {
- if ( status ) {
- this.vendorInfo.featured = true;
- } else {
- this.vendorInfo.featured = false;
- }
+ this.vendorInfo.featured = status;
+ this.featured = status;
}
},
diff --git a/src/utils/Bootstrap.js b/src/utils/Bootstrap.js
index b409984750..5a5c20dc95 100644
--- a/src/utils/Bootstrap.js
+++ b/src/utils/Bootstrap.js
@@ -53,6 +53,7 @@ import AdminNotice from "../admin/components/AdminNotice.vue";
import CardFunFact from "../admin/components/CardFunFact.vue";
import "vue-multiselect/dist/vue-multiselect.min.css"
+import Vuedraggable from "vuedraggable/src/vuedraggable";
Vue.use(Notifications)
@@ -121,6 +122,7 @@ window.dokan.libs['RefreshSettingOptions'] = RefreshSettingOptions;
window.dokan.libs['AdminNotice'] = AdminNotice;
window.dokan.libs['CardFunFact'] = CardFunFact;
window.dokan.libs['papaparse'] = parse;
+window.dokan.libs['Vuedraggable'] = Vuedraggable;
window.dokan.libs['ContentLoading'] = {
VclCode,