File tree Expand file tree Collapse file tree 13 files changed +78
-14
lines changed
packages/backend.ai-ui/src Expand file tree Collapse file tree 13 files changed +78
-14
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,14 @@ export interface BAIImportArtifactModalProps
3333 extends Omit < ModalProps , 'onOk' | 'onCancel' > {
3434 selectedArtifactFrgmt : BAIImportArtifactModalArtifactFragment$key | null ;
3535 selectedArtifactRevisionFrgmt : BAIImportArtifactModalArtifactRevisionFragment$key ;
36- onOk : ( e : React . MouseEvent < HTMLElement > ) => void ;
36+ onOk : (
37+ e : React . MouseEvent < HTMLElement > ,
38+ tasks : {
39+ taskId : string ;
40+ version : string ;
41+ artifact_id : string ;
42+ } [ ] ,
43+ ) => void ;
3744 onCancel : ( e : React . MouseEvent < HTMLElement > ) => void ;
3845}
3946
@@ -124,7 +131,6 @@ const BAIImportArtifactModal = ({
124131 title = { t ( 'comp:BAIImportArtifactModal.PullVersion' ) }
125132 centered
126133 onOk = { ( e ) => {
127- onOk ( e ) ;
128134 importArtifacts ( {
129135 variables : {
130136 input : {
@@ -148,7 +154,14 @@ const BAIImportArtifactModal = ({
148154 count : res . importArtifacts . artifactRevisions . edges . length ,
149155 } ) ,
150156 ) ;
151- onOk ( e ) ;
157+ onOk (
158+ e ,
159+ res . importArtifacts . tasks . map ( ( task ) => ( {
160+ taskId : task . taskId ,
161+ version : task . artifactRevision . version ,
162+ artifact_id : toLocalId ( selectedArtifact ! . id ) ,
163+ } ) ) ,
164+ ) ;
152165 } ,
153166 onError : ( err ) => {
154167 message . error (
Original file line number Diff line number Diff line change 129129 "Create" : " 생성" ,
130130 "Delete" : " 삭제" ,
131131 "Remove" : " 제거" ,
132-
133132 "Upload" : " 업로드"
134133 }
135134 }
Original file line number Diff line number Diff line change 122122 "general" : {
123123 "NSelected" : " {{count}} dipilih" ,
124124 "TotalItems" : " Jumlah {{total}} item" ,
125-
126125 "button" : {
127126 "Cancel" : " Batalkan" ,
128127 "Close" : " Tutup" ,
Original file line number Diff line number Diff line change 122122 "general" : {
123123 "NSelected" : " {{count}}" ,
124124 "TotalItems" : " Total {{total}}" ,
125-
126125 "button" : {
127126 "Cancel" : " Anulować" ,
128127 "Close" : " Zamknąć" ,
129128 "CopyAll" : " Kopiuj wszystko" ,
130129 "Create" : " Tworzyć" ,
131130 "Delete" : " Usuwać" ,
132131 "Remove" : " Usunąć" ,
132+
133133 "Upload" : " Wgrywać"
134134 }
135135 }
Original file line number Diff line number Diff line change 1717 "Updated" : " Atualizado" ,
1818 "Version" : " Versão"
1919 },
20+
2021 "comp:BAIArtifactTable" : {
2122 "Action" : " Ação" ,
2223 "PullLatestVersion" : " Puxe a versão mais recente" ,
121122 "general" : {
122123 "NSelected" : " {{count}} selecionado" ,
123124 "TotalItems" : " Total {{total}} itens" ,
124-
125125 "button" : {
126126 "Cancel" : " Cancelar" ,
127127 "Close" : " Fechar" ,
Original file line number Diff line number Diff line change 1717 "Updated" : " Atualizado" ,
1818 "Version" : " Versão"
1919 },
20+
2021 "comp:BAIArtifactTable" : {
2122 "Action" : " Ação" ,
2223 "PullLatestVersion" : " Puxe a versão mais recente" ,
122123 "general" : {
123124 "NSelected" : " {{count}} selecionado" ,
124125 "TotalItems" : " Total {{total}} itens" ,
125-
126126 "button" : {
127127 "Cancel" : " Cancelar" ,
128128 "Close" : " Fechar" ,
Original file line number Diff line number Diff line change 122122 "general" : {
123123 "NSelected" : " {{count}} выбрал" ,
124124 "TotalItems" : " Total {{total}} элементы" ,
125-
126125 "button" : {
127126 "Cancel" : " Отмена" ,
128127 "Close" : " Закрывать" ,
Original file line number Diff line number Diff line change 122122 "general" : {
123123 "NSelected" : " {{count}} เลือก" ,
124124 "TotalItems" : " รวม {{total}} รายการ" ,
125-
126125 "button" : {
127126 "Cancel" : " ยกเลิก" ,
128127 "Close" : " ปิด" ,
Original file line number Diff line number Diff line change 117117 "general" : {
118118 "NSelected" : " {{count}} seçildi" ,
119119 "TotalItems" : " Total {{total}} öğeleri" ,
120-
121120 "button" : {
122121 "Cancel" : " İptal etmek" ,
123122 "Close" : " Kapalı" ,
Original file line number Diff line number Diff line change 122122 "general" : {
123123 "NSelected" : " {{count}}选择" ,
124124 "TotalItems" : " 总计{{total}}项目" ,
125-
126125 "button" : {
127126 "Cancel" : " 取消" ,
128127 "Close" : " 关闭" ,
You can’t perform that action at this time.
0 commit comments