Make reset show the original icon

This commit is contained in:
Girish Ramakrishnan
2019-05-21 00:14:44 -07:00
parent f0093c5e4f
commit 7b2ae2c457
2 changed files with 8 additions and 3 deletions

View File

@@ -111,9 +111,9 @@
</div>
<div class="form-group">
<label class="control-label">Icon</label>
<a href="" class="pull-right" style="font-weight: normal;" ng-click="appConfigure.icon.data = ''">Reset</a>
<a href="" class="pull-right" style="font-weight: normal;" ng-click="appConfigure.resetCustomIcon()">Reset</a>
<div>
<img id="previewIcon" width="128" height="128" ng-src="{{appConfigure.icon.data || appConfigure.app.iconUrl}}" ng-click="appConfigure.showCustomIconSelector()"/>
<img id="previewIcon" width="128" height="128" ng-src="{{appConfigure.icon.data || appConfigure.icon.url || appConfigure.app.iconUrl}}" ng-click="appConfigure.showCustomIconSelector()"/>
<input type="file" id="iconFileInput" style="display: none" accept="image/png"/>
</div>
</div>