Skip to content

Commit

Permalink
SDBELGA-244 As a users I want to have description of an attachment op…
Browse files Browse the repository at this point in the history
…tional (#3418)
  • Loading branch information
ride90 authored Apr 3, 2020
1 parent d00b7e2 commit 624388d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/apps/archive/views/upload-attachments.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ <h3 class="modal__heading">{{ activity.label | translate }}</h3>
<label class="sd-line-input__label" translate>Title</label>
<input class="sd-line-input__input" type="text" ng-model="item.meta.title" required>
</div>
<div class="sd-line-input sd-line-input--boxed sd-line-input--required">
<div class="sd-line-input sd-line-input--boxed">
<label class="sd-line-input__label" translate>Description</label>
<input class="sd-line-input__input" type="text" ng-model="item.meta.description" required>
<input class="sd-line-input__input" type="text" ng-model="item.meta.description">
</div>
<div class="sd-line-input sd-line-input--boxed">
<label class="sd-line-input__label" translate>File Name</label>
Expand Down
5 changes: 2 additions & 3 deletions scripts/apps/authoring/attachments/AttachmentsEditorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,14 @@ class AttachmentsEditorModalComponent extends React.Component<IProps, IState> {
<TextArea
field="description"
value={this.state.description}
onChange={this.update}
required />
onChange={this.update} />
</div>
</ModalBody>

<ModalFooter>
<button className="btn btn--primary pull-right"
onClick={() => this.props.saveFile(this.props.file, this.state)}
disabled={!this.state.title || !this.state.description}
disabled={!this.state.title}
>{gettext('Update')}</button>
<button className="btn pull-right"
onClick={this.props.closeEdit}
Expand Down

0 comments on commit 624388d

Please sign in to comment.