diff --git a/src/components/catalog/catalog.riot b/src/components/catalog/catalog.riot index 5257a1f..f039bf9 100644 --- a/src/components/catalog/catalog.riot +++ b/src/components/catalog/catalog.riot @@ -51,9 +51,6 @@ along with this program. If not, see . onMounted(props) { this.display(props, this.state) }, - onUpdated(props, state) { - - }, display(props, state) { this.state.repositories = []; @@ -82,13 +79,13 @@ along with this program. If not, see . return acc; }, []); } else if (this.status == 404) { - // registryUI.snackbar('Server not found', true); + self.props.onNotify('Server not found', true); } else { - // registryUI.snackbar(this.responseText); + self.props.onNotify(this.responseText); } }); oReq.addEventListener('error', function () { - // registryUI.snackbar(this.getErrorMessage(), true); + self.props.onNotify(this.getErrorMessage(), true); state.repositories = []; }); oReq.addEventListener('loadend', function () { diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot index 32726c0..9110c4b 100644 --- a/src/components/docker-registry-ui.riot +++ b/src/components/docker-registry-ui.riot @@ -24,19 +24,20 @@ along with this program. If not, see . + catalog-elements-limit="{ state.catalogElementsLimit }" on-notify="{ notifySnackbar }" /> + is-image-remove-activated="{props.isImageRemoveActivated}" on-notify="{ notifySnackbar }"> + is-image-remove-activated="{props.isImageRemoveActivated}" on-notify="{ notifySnackbar }"> +