Fix showDetail function in multiple components
This commit is contained in:
		| @@ -236,6 +236,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -247,7 +248,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -478,6 +478,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -489,7 +490,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -424,6 +424,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -435,7 +436,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -311,6 +311,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -322,7 +323,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -389,6 +389,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -400,7 +401,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -434,6 +434,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -445,7 +446,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -431,6 +431,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -442,7 +443,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user