Merge pull request #25441 from nextcloud/bugfix/24473/quickfix-tags-view-once
Fix duplicate tag info view registration
This commit is contained in:
commit
99052da983
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -31,9 +31,14 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const systemTagsInfoView = new OCA.SystemTags.SystemTagsInfoView()
|
// only create and attach once
|
||||||
fileList.registerDetailView(systemTagsInfoView)
|
// FIXME: this should likely be done on a different code path now
|
||||||
OCA.SystemTags.View = systemTagsInfoView
|
// for the sidebar to only have it registered once
|
||||||
|
if (!OCA.SystemTags.View) {
|
||||||
|
const systemTagsInfoView = new OCA.SystemTags.SystemTagsInfoView()
|
||||||
|
fileList.registerDetailView(systemTagsInfoView)
|
||||||
|
OCA.SystemTags.View = systemTagsInfoView
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue