Re-introduce: Replace deprecated setIndicatorTitle with setTitle

Patch got reverted in Iffbbd36d0e91, with I3028c4225a42 we should be
good to go now.

Bug: T76638
Change-Id: I016f7db8b2527b3ffe3bd103e6c88ee8e4dd11bc
This commit is contained in:
Volker E 2019-01-16 22:12:38 -08:00
parent 27a596e4f0
commit 5c5323fc3a

View file

@ -61,7 +61,7 @@ ve.ui.MWParameterPage = function VeUiMWParameterPage( parameter, name, config )
if ( this.parameter.isRequired() ) {
this.statusIndicator
.setIndicator( 'required' )
.setIndicatorTitle(
.setTitle(
ve.msg( 'visualeditor-dialog-transclusion-required-parameter' )
);
this.$description.append(
@ -74,7 +74,7 @@ ve.ui.MWParameterPage = function VeUiMWParameterPage( parameter, name, config )
} else if ( this.parameter.isDeprecated() ) {
this.statusIndicator
.setIndicator( 'alert' )
.setIndicatorTitle(
.setTitle(
ve.msg( 'visualeditor-dialog-transclusion-deprecated-parameter' )
);
this.$description.append(
@ -377,14 +377,14 @@ ve.ui.MWParameterPage.prototype.setOutlineItem = function () {
if ( this.parameter.isRequired() ) {
this.outlineItem
.setIndicator( 'required' )
.setIndicatorTitle(
.setTitle(
ve.msg( 'visualeditor-dialog-transclusion-required-parameter' )
);
}
if ( this.parameter.isDeprecated() ) {
this.outlineItem
.setIndicator( 'alert' )
.setIndicatorTitle(
.setTitle(
ve.msg( 'visualeditor-dialog-transclusion-deprecated-parameter' )
);
}