mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix: Only reset preview src if it used to fail before
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
eaaf954753
commit
0d2e9a1b0a
1 changed files with 3 additions and 3 deletions
|
|
@ -217,11 +217,11 @@ export default Vue.extend({
|
|||
|
||||
methods: {
|
||||
reset() {
|
||||
// Reset background state
|
||||
this.backgroundFailed = undefined
|
||||
if (this.$refs.previewImg) {
|
||||
if (this.backgroundFailed === true && this.$refs.previewImg) {
|
||||
this.$refs.previewImg.src = ''
|
||||
}
|
||||
// Reset background state
|
||||
this.backgroundFailed = undefined
|
||||
},
|
||||
|
||||
t,
|
||||
|
|
|
|||
Loading…
Reference in a new issue