Fix MS16802: In Purchases, there shouldn't be a glyph associated with the Open button

This commit is contained in:
Zach Fox 2018-07-17 16:16:43 -07:00
parent 07a7bbbcf6
commit ef4265de4b

View file

@ -731,7 +731,7 @@ Item {
} }
HiFiGlyphs { HiFiGlyphs {
id: rezIcon; id: rezIcon;
text: (root.buttonGlyph)[itemTypesArray.indexOf(root.itemType)]; text: root.isInstalled ? "" : (root.buttonGlyph)[itemTypesArray.indexOf(root.itemType)];
anchors.right: rezIconLabel.left; anchors.right: rezIconLabel.left;
anchors.rightMargin: 2; anchors.rightMargin: 2;
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
@ -750,7 +750,7 @@ Item {
text: root.isInstalled ? "OPEN" : (MyAvatar.skeletonModelURL === root.itemHref ? "CURRENT" : (root.buttonTextNormal)[itemTypesArray.indexOf(root.itemType)]); text: root.isInstalled ? "OPEN" : (MyAvatar.skeletonModelURL === root.itemHref ? "CURRENT" : (root.buttonTextNormal)[itemTypesArray.indexOf(root.itemType)]);
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
width: rezIconLabelTextMetrics.width; width: rezIconLabelTextMetrics.width;
x: parent.width/2 - rezIconLabelTextMetrics.width/2 + rezIconTextMetrics.width/2; x: parent.width/2 - rezIconLabelTextMetrics.width/2 + (rezIcon.text === "" ? 0 : rezIconTextMetrics.width/2);
size: 15; size: 15;
font.capitalization: Font.AllUppercase; font.capitalization: Font.AllUppercase;
verticalAlignment: Text.AlignVCenter; verticalAlignment: Text.AlignVCenter;