Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/199251

Change subject: Render qualifiers in statementview after being saved
......................................................................

Render qualifiers in statementview after being saved

While this could probably be done in a nicer way, this
is consistent with the changes in I9444ae5 and to avoid
massive merge conflicts.

Bug: T93073
Change-Id: I9db87de4e7f2f079393800412e6af3d14976f88a
(cherry picked from commit 049bdabd1ce61a770c95f0e77657c3aaad70e551)
---
M lib/resources/jquery.wikibase/jquery.wikibase.statementview.js
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/51/199251/1

diff --git a/lib/resources/jquery.wikibase/jquery.wikibase.statementview.js 
b/lib/resources/jquery.wikibase/jquery.wikibase.statementview.js
index bcb6c72..72f1435 100644
--- a/lib/resources/jquery.wikibase/jquery.wikibase.statementview.js
+++ b/lib/resources/jquery.wikibase/jquery.wikibase.statementview.js
@@ -478,7 +478,11 @@
                                : this.option( 'predefined' ).mainSnak || null
                );
 
-               if( this.isInEditMode() ) {
+               if( this.isInEditMode()
+                       || this.options.value
+                               && 
this.options.value.getClaim().getQualifiers().length
+                               && !this.$qualifiers.children().length
+               ) {
                        this._createQualifiersListview(
                                this.options.value
                                        ? 
this.options.value.getClaim().getQualifiers()

-- 
To view, visit https://gerrit.wikimedia.org/r/199251
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9db87de4e7f2f079393800412e6af3d14976f88a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: wmf/1.25wmf22
Gerrit-Owner: Aude <aude.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to