Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMI-3130 Reverted previous changes #2362

Merged
merged 7 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion api/net/Areas/Subscriber/Controllers/ContentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ public async Task<IActionResult> UpdateAsync([FromBody] ContentModel model)
content.Summary = model.Summary;
content.Body = model.Body;
content.Versions = model.Versions;
content.IsCBRAUnqualified = model.IsCBRAUnqualified;
foreach (var tonePool in model.TonePools)
{
// Update or Add.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@ export const defaultFormValues = (contentType: ContentTypeName): IContentForm =>
edition: '',
byline: '',
createdOn: publishedOn.toString(),
isCBRAUnqualified: false,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ export interface IContentForm
prep?: number;
// Print Content
showOther?: boolean;
isCBRAUnqualified: boolean;
}
6 changes: 0 additions & 6 deletions app/editor/src/features/content/form/styled/ContentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ export const ContentForm = styled.div`
padding-right: 0.5em;
}

.checkbox-cbra {
margin-left: 2em;
margin-top: 2em;
padding-right: 0.5em;
}

.content-properties {
flex-grow: 1;
padding-top: 1em;
Expand Down
1 change: 0 additions & 1 deletion app/editor/src/features/content/form/utils/toForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@ export function toForm(model: IContentModel): IContentForm {
section: model.section ?? '',
edition: model.edition ?? '',
version: model.version,
isCBRAUnqualified: model.isCBRAUnqualified,
};
}
1 change: 0 additions & 1 deletion app/editor/src/features/content/form/utils/toModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ export function toModel(values: IContentForm): IContentModel {
postedOn: values.postedOn ? moment(values.postedOn).toISOString() : undefined,
publishedOn: moment(values.publishedOn).toISOString(),
version: values.version,
isCBRAUnqualified: values.isCBRAUnqualified,
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const useCastContentToSearchResult = () => {
? content.actions.some((a) => a.id === featuredStoryActionId && a.value === 'true')
: false,
version: content.version,
isCBRAUnqualified: content.isCBRAUnqualified,
};

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ export interface IContentSearchResult {
transcriptStatus?: WorkOrderStatusName;
original: IContentModel;
version?: number;
isCBRAUnqualified: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ export const castToSearchResult = (message: IContentMessageModel): IContentSearc
quotes: [],
userNotifications: [],
versions: {},
isCBRAUnqualified: false,
};
};
12 changes: 12 additions & 0 deletions app/subscriber/src/features/login/styled/SystemMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,16 @@ export const SystemMessage = styled.div`
float: right;
color: ${(props) => props.theme.css.btnBkPrimary};
}

.ql-align-left {
text-align: left;
}

.ql-align-center {
text-align: center;
}

.ql-align-right {
text-align: right;
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ export const defaultContent: IContentModel = {
quotes: [],
userNotifications: [],
versions: {},
isCBRAUnqualified: false,
};
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const generateContent = (options: IGenerateContentOptions) => {
quotes: [],
userNotifications: [],
versions: {},
isCBRAUnqualified: false,
...options.content,
};
return entity;
Expand Down
1 change: 0 additions & 1 deletion libs/net/dal/Configuration/ContentConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public override void Configure(EntityTypeBuilder<Content> builder)
builder.HasIndex(m => new { m.ContentType, m.OtherSource, m.Uid, m.Page, m.Status, m.IsHidden }, "IX_content");
builder.HasIndex(m => new { m.Edition, m.Section, m.Byline }, "IX_print_content");
builder.HasIndex(m => m.Headline, "IX_headline");
builder.Property(m => m.IsCBRAUnqualified).IsRequired();

base.Configure(builder);
}
Expand Down
Loading
Loading