Quintiq file version 2.0
#parent: #root
Method UpdateActionLinks () id:Method_DialogCreateEditCampaignType_UpdateActionLinks
{
  #keys: '[146140.2.68789584]'
  Body:
  [*
    // Change actionlinks text
    
    data := DataHolderDialogData.Data();
    
    // Quantity
    if( data.HasInputMaxQuantity() )
    {
      EditFieldDefaultMaxQty.ActionLinkText( Translations::MP_WebDesigner_Disable() ); 
    }
    else
    {
      EditFieldDefaultMaxQty.ActionLinkText( Translations::MP_WebDesigner_Enable() );
    }
    
    // Duration
    if( data.HasInputMaxDuration() )
    {
      DurationSelectorMaxDuration.ActionLinkText( Translations::MP_WebDesigner_Disable() ); 
    }
    else
    {
      DurationSelectorMaxDuration.ActionLinkText( Translations::MP_WebDesigner_Enable() );
    }
  *]
}
