Skip to content

Commit

Permalink
change announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
rabeatwork committed Feb 18, 2025
1 parent 49e9858 commit ee3d319
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h4 class="alert-heading" jhiTranslate="artemisApp.messageWarning.headerText"></
[buttonLoading]="isLoading"
[disabled]="isLoading || !formGroup.valid"
[buttonLabel]="'artemisApp.conversationsLayout.saveMessage' | artemisTranslate"
class="btn btn-sm btn-outline-secondary"
class="btn btn-sm btn-outline-primary"
id="save"
type="submit"
></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,30 @@ <h4 class="modal-title">{{ modalTitle | artemisTranslate }}</h4>
<jhi-help-icon text="artemisApp.metis.post.contentTooltip" />
</div>
<div class="row mb-2">
<jhi-posting-markdown-editor formControlName="content" [editorHeight]="editorHeight" [maxContentLength]="maxContentLength" [suppressNewlineOnEnter]="false" />
<jhi-posting-markdown-editor
formControlName="content"
[editorHeight]="editorHeight"
[maxContentLength]="maxContentLength"
[suppressNewlineOnEnter]="false"
[isButtonLoading]="isLoading"
[isFormGroupValid]="formGroup.valid"
[editType]="editType"
/>
</div>
</div>
</div>
<div class="modal-footer">
<button
jhi-posting-button
[buttonLoading]="isLoading"
[disabled]="isLoading || !formGroup.valid"
[buttonLabel]="'artemisApp.metis.savePosting' | artemisTranslate"
id="save"
class="btn btn-sm btn-outline-secondary"
type="submit"
></button>
</div>
@if (editType === EditType.UPDATE) {
<div class="modal-footer">
<button
jhi-posting-button
[buttonLoading]="isLoading"
[disabled]="isLoading || !formGroup.valid"
[buttonLabel]="'artemisApp.conversationsLayout.saveMessage' | artemisTranslate"
class="btn btn-sm btn-outline-primary"
id="save"
type="submit"
></button>
</div>
}
</form>
</ng-template>
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class PostingMarkdownEditorComponent implements OnInit, ControlValueAcces
@Input() isFormGroupValid = false;
@Input() editType: PostingEditType;

readonly EditType = PostingEditType;
readonly EditType = PostingEditType.CREATE;
/**
* For AnswerPosts, the MetisService may not always have an active conversation (e.g. when in the 'all messages' view).
* In this case, file uploads have to rely on the parent post to determine the course.
Expand Down

0 comments on commit ee3d319

Please sign in to comment.