Edited as per @jamesgeorge007 's said

This commit is contained in:
athul
2019-11-26 19:08:28 +05:30
parent cb8734bba7
commit 43cd6504b6
3 changed files with 3 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ export default {
};
},
watch: {
"requestUpdateData.collectionIndex": ()=> { //resetFolderIndex Function
"requestUpdateData.collectionIndex":function resetFolderIndex() { //resetFolderIndex Function
// if user choosen some folder, than selected other collection, which doesn't have any folders
// than `requestUpdateData.folderIndex` won't be reseted
this.$data.requestUpdateData.folderIndex = undefined;

View File

@@ -119,7 +119,7 @@ export default {
this.$data.requestData.folderIndex = undefined;
this.$data.requestData.requestIndex = undefined;
},
"requestData.folderIndex": ()=> {
"requestData.folderIndex": function resetRequestIndex() {
this.$data.requestData.requestIndex = undefined;
}
},

View File

@@ -432,7 +432,7 @@ export default {
this.sse.close();
}
},
updated: ()=> {
updated: function() {
this.$nextTick(()=> {
const divLog = document.getElementById("log");
divLog.scrollBy(0, divLog.scrollHeight + 100);