Fix showDetail function in multiple components
This commit is contained in:
		| @@ -867,6 +867,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -878,7 +879,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
| const onDataSelectionChanged = ({ selectedRowsData }: any) => { | ||||
|   | ||||
| @@ -427,6 +427,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -438,7 +439,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -672,6 +672,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -683,7 +684,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -282,6 +282,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -293,7 +294,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -511,6 +511,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -522,7 +523,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -428,6 +428,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -439,7 +440,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -433,6 +433,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -444,7 +445,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -433,6 +433,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -444,7 +445,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -433,6 +433,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -444,7 +445,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user