Fix showDetail function in multiple components
This commit is contained in:
		| @@ -757,6 +757,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -768,7 +769,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -368,6 +368,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -379,7 +380,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -1082,6 +1082,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -1093,7 +1094,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -446,6 +446,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -457,7 +458,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -368,6 +368,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -379,7 +380,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -380,6 +380,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -391,7 +392,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -827,6 +827,7 @@ const getDetail = async () => { | ||||
|     }) | ||||
|     .finally(() => { | ||||
|       loadingSubData.value = false | ||||
|       dialogDetail.value = true | ||||
|     }) | ||||
| } | ||||
|  | ||||
| @@ -838,7 +839,6 @@ const clearSelection = () => { | ||||
| const showDetail = () => { | ||||
|   clearSelection() | ||||
|   dataSubSelected.value = null | ||||
|   dialogDetail.value = true | ||||
|   getDetail() | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user