@@ -291,7 +291,7 @@ function getModuleDetailInstallButton(moduleName, td, buttonDiv) {
291291 } else {
292292 buttonText = 'Install' ;
293293 button . style . backgroundColor = '#beeaff' ;
294- button . addEventListener ( 'click' , ( ) => OC . mediator . publish ( 'moduleinfo.install' ) ) ;
294+ button . addEventListener ( 'click' , ( evt ) => OC . mediator . publish ( 'moduleinfo.install' , evt ) ) ;
295295 }
296296 button . textContent = buttonText ;
297297 button . style . padding = '8px' ;
@@ -321,7 +321,7 @@ function getModuleDetailUpdateButton(moduleName) {
321321 var titleText = 'Update blocked by: ' + blockString + '. Uninstall blocking modules to update.' ;
322322 button . setAttribute ( 'title' , titleText ) ;
323323 }
324- button . addEventListener ( 'click' , ( ) => OC . mediator . publish ( 'moduleinfo.update' ) ) ;
324+ button . addEventListener ( 'click' , ( evt ) => OC . mediator . publish ( 'moduleinfo.update' , evt ) ) ;
325325 return button ;
326326}
327327
@@ -408,6 +408,7 @@ function makeModuleDetailDialog(moduleName, moduleListName, moduleListPos) {
408408 sdiv . style . marginTop = '10px' ;
409409 sdiv . style . fontSize = '12px' ;
410410 if ( OC . installInfo [ moduleName ] != undefined ) {
411+ button . disabled = true ;
411412 sdiv . textContent = OC . installInfo [ moduleName ] [ 'msg' ] ;
412413 }
413414 addEl ( td , sdiv ) ;
@@ -619,6 +620,9 @@ function makeModuleDetailDialog(moduleName, moduleListName, moduleListPos) {
619620 addEl ( d , span ) ;
620621 var button = getModuleDetailUpdateButton ( moduleName ) ;
621622 addEl ( buttonDiv , button ) ;
623+ if ( OC . installInfo [ moduleName ] !== undefined ) {
624+ button . disabled = true ;
625+ }
622626 }
623627 }
624628 }
0 commit comments