async function loadCapsuleLabel(capsuleId, timeCapsule) {
  try {
    const capsuleLabel = await timeCapsule.getCapsuleLabel(capsuleId);
    console.log("capsuleLabel:", capsuleLabel);

    $('#summary').val(capsuleLabel.summary);
    $('#unlock-date').val(moment.unix(capsuleLabel.unlockDate).format(DATE_TIME_FORMAT));

    $('#form').show();

    return true;
  } catch(error) {
    console.log("error:", error);
    
    $('#loading-div').loading('stop');
  }
}
/**
 * Loads the capsule label, i.e. the publicly available information that
 * doesn't depend on unlock status
 * 
 * @param {string} capsuleId The capsule id
 * @param {Contract} timeCapsule The Ethereum contract
 * @returns true if the capsule was loaded succesfully
 */
Loads the capsule label, i.e. the publicly available information that
doesn't depend on unlock status

@param {string} capsuleId The capsule id
@param {Contract} timeCapsule The Ethereum contract
@returns true if the capsule was loaded succesfully
Loads the capsule label i . e . the publicly available information that doesn ' t depend on unlock status @param { string } capsuleId The capsule id @param { Contract } timeCapsule The Ethereum contract @returns true if the capsule was loaded succesfully
async function loadCapsuleLabel(capsuleId, timeCapsule) {
  try {
    const capsuleLabel = await timeCapsule.getCapsuleLabel(capsuleId);
    console.log("capsuleLabel:", capsuleLabel);
    $('#summary').val(capsuleLabel.summary);
    $('#unlock-date').val(moment.unix(capsuleLabel.unlockDate).format(DATE_TIME_FORMAT));
    $('#form').show();
    return true;
  } catch(error) {
    console.log("error:", error);
    $('#loading-div').loading('stop');
  }
}
async function loadCapsuleLabel ( capsuleId , timeCapsule ) { try { const capsuleLabel = await timeCapsule . getCapsuleLabel ( capsuleId ) ; console . log ( "capsuleLabel:" , capsuleLabel ) ; $ ( '#summary' ) . val ( capsuleLabel . summary ) ; $ ( '#unlock-date' ) . val ( moment . unix ( capsuleLabel . unlockDate ) . format ( DATE_TIME_FORMAT ) ) ; $ ( '#form' ) . show ( ) ; return true ; } catch ( error ) { console . log ( "error:" , error ) ; $ ( '#loading-div' ) . loading ( 'stop' ) ; } }
Loads the capsule label, i.e.
Loads the capsule label i . e .