Skip to content

Commit

Permalink
check doc type for screenshot too
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Jan 11, 2024
1 parent 2318436 commit 757edb4
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@

<label id="upload_source_label" class="form-label">{{ __("Upload from") }}</label>
<div class="d-inline" role="group" aria-labelledby="upload_source_label">
<button class="btn btn-sm btn-secondary me-2 d-none" type="button" name="add_screenshot">
<i class="ti ti-photo"></i>
<span>{{ __('Screenshot') }}</span>
</button>
{% if '.png'|is_valid_doc is not empty %}
<button class="btn btn-sm btn-secondary me-2 d-none" type="button" name="add_screenshot">
<i class="ti ti-photo"></i>
<span>{{ __('Screenshot') }}</span>
</button>
{% endif %}
{% if '.webm'|is_valid_doc is not empty %}
{# TODO hide the screen recording option behind a permission? #}
<button class="btn btn-sm btn-secondary me-2 d-none" type="button" name="add_screenrecording">
Expand Down

0 comments on commit 757edb4

Please sign in to comment.