Skip to content

Commit

Permalink
set embargo default value to false
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Dec 11, 2024
1 parent aff5a1f commit ff1e3b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions scripts/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ if (appConfig.shortTimeFormat == null) {
appConfig.shortTimeFormat = 'HH:mm'; // 24h format
}

if (appConfig.ui == null) {
appConfig.ui = {};
}

if (appConfig.ui.sendEmbargo == null) {
appConfig.ui.sendEmbargo = false;
}

const defaultDateFormat = 'MM/DD';
const defaultTimeFormat = 'hh:mm';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class SendToTab extends React.PureComponent<IProps, IState> {
onChange={(val) => {
this.setState({publishingDateOptions: val});
}}
allowSettingEmbargo={appConfig.ui.sendEmbargo !== false}
allowSettingEmbargo={appConfig.ui.sendEmbargo}
/>
)
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/core/superdesk-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3420,7 +3420,7 @@ declare module 'superdesk-api' {
sendPublishSchedule?: boolean;

/**
* Can set embargo in "send to" pane. Defaults to true;
* Can set embargo in "send to" pane. Defaults to false;
*/
sendEmbargo?: boolean;

Expand Down

0 comments on commit ff1e3b8

Please sign in to comment.