Example #1
0
 static async preload({ dispatch, getState }, { domainLabel }) {
   try {
     const { id } = await dispatch(getObjectByLabelLazily('domains', domainLabel, 'domain'));
     await dispatch(domains.records.all([id]));
   } catch (e) {
     // eslint-disable-next-line no-console
     console.error(e);
     dispatch(setError(e));
   }
 }
Example #2
0
 onOk={async () => {
   await dispatch(domains.records.delete(domain.id, id));
   dispatch(hideModal());
 }}