fix sort menu
This commit is contained in:
@@ -111,7 +111,6 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.onResize();
|
this.onResize();
|
||||||
this.getMenu();
|
|
||||||
this.getUserSettings();
|
this.getUserSettings();
|
||||||
this.listenerIframe();
|
this.listenerIframe();
|
||||||
window.setInterval(
|
window.setInterval(
|
||||||
@@ -176,7 +175,9 @@ export default {
|
|||||||
this.createUserSettings();
|
this.createUserSettings();
|
||||||
} else if (response.data) {
|
} else if (response.data) {
|
||||||
this.config = response.data;
|
this.config = response.data;
|
||||||
|
this.getMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
@@ -269,7 +270,13 @@ export default {
|
|||||||
}
|
}
|
||||||
if (data[i].id === "inbox" || data[i].id === "draft"
|
if (data[i].id === "inbox" || data[i].id === "draft"
|
||||||
|| data[i].id === "paused" || data[i].id === "unassigned") {
|
|| data[i].id === "paused" || data[i].id === "unassigned") {
|
||||||
data[i]["child"] = this.sortCustomCasesList(data[i].customCasesList, this.config.setting[this.page] && this.config.setting[this.page].customCasesList ? this.config.setting[this.page].customCasesList: [])
|
data[i]["child"] = this.sortCustomCasesList(
|
||||||
|
data[i].customCasesList,
|
||||||
|
this.config.setting[this.page] &&
|
||||||
|
this.config.setting[this.page].customCasesList
|
||||||
|
? this.config.setting[this.page].customCasesList
|
||||||
|
: []
|
||||||
|
);
|
||||||
data[i]["sortable"] = data[i].customCasesList.length > 1;
|
data[i]["sortable"] = data[i].customCasesList.length > 1;
|
||||||
data[i]["sortIcon"] = "gear-fill";
|
data[i]["sortIcon"] = "gear-fill";
|
||||||
data[i] = {
|
data[i] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user