Skip to content

Commit

Permalink
Deprecate outdated options for disabling whistleblowers to load comme…
Browse files Browse the repository at this point in the history
…nts and files (client)
  • Loading branch information
evilaliv3 committed Feb 27, 2024
1 parent 390b286 commit 79b6fbf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions client/app/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,6 @@ factory("AdminUtils", ["AdminContextResource", "AdminQuestionnaireResource", "Ad
context.show_steps_navigation_interface = true;
context.select_all_receivers = true;
context.maximum_selectable_receivers = 0;
context.enable_two_way_comments = true;
context.enable_attachments = true;
context.questionnaire_id = "";
context.additional_questionnaire_id = "";
context.score_threshold_medium = 0;
Expand Down
6 changes: 0 additions & 6 deletions client/app/views/admin/contexts.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@
</label>
</div>
</div>
<div class="form-group">
<label class="inline-checkbox">
<input data-ng-model="context.enable_attachments" type="checkbox"/>
<span data-translate>Allow the whistleblower to add attachments</span>
</label>
</div>
<div class="form-group">
<label data-translate>Additional questionnaire</label>
<select class="form-control" data-ng-model="context.additional_questionnaire_id"
Expand Down
6 changes: 0 additions & 6 deletions client/app/views/partials/tip_files_receiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,5 @@
</tbody>
</table>
</div>
<div data-ng-if="Authentication.session.role === 'receiver' && !tip.context.enable_attachments" class="form-group">
<label class="inline-checkbox">
<input data-ng-model="tip.enable_attachments" data-ng-change="tip.operation('set', {'key': 'enable_attachments', 'value': tip.enable_attachments})" type="checkbox" />
<span data-translate>Allow the whistleblower to add attachments</span>
</label>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion client/app/views/whistleblower/tip.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="row">
<div class="col-md-12">
<div data-ng-if="tip.enable_attachments" data-ng-controller="WhistleblowerIdentityFormCtrl" data-ng-include="'views/partials/tip_files_whistleblower.html'"></div>
<div data-ng-controller="WhistleblowerIdentityFormCtrl" data-ng-include="'views/partials/tip_files_whistleblower.html'"></div>
<div data-ng-if="tip.rfiles.length" data-ng-controller="WhistleblowerFilesCtrl" data-ng-include="'views/partials/widget_rfiles.html'"></div>
</div>
</div>
Expand Down

0 comments on commit 79b6fbf

Please sign in to comment.