Show placeholder image for branding background

This commit is contained in:
Johannes Zellner
2024-04-05 17:15:31 +02:00
parent 8db6da2de9
commit 67a8228886

View File

@@ -58,7 +58,7 @@
<input id="userBackgroundInput" type="checkbox" ng-model="background.enabled">
<label for="userBackgroundInput" class="control-label">Use background image</label>
<div class="branding-background" ng-show="background.enabled" ng-click="background.selectNew()">
<img ng-src="{{ background.url() }}"/>
<img ng-src="{{ background.url() }}" onerror="this.src = '/img/background-image-placeholder.svg'"/>
<div class="overlay"></div>
</div>
<input type="file" id="backgroundFileInput" style="display: none" accept="image/*"/>