TorrentHeading: do not display priority text label

The button shifting due to length of text is unacceptable to UX.
This commit is contained in:
Jesse Chan
2020-09-30 13:38:30 +08:00
parent 53f7f48c95
commit 2ea1bb9dba
2 changed files with 2 additions and 3 deletions
@@ -1,7 +1,7 @@
import {injectIntl} from 'react-intl';
import React from 'react';
import PiorityLevels from '../../../constants/PriorityLevels';
import PriorityLevels from '../../../constants/PriorityLevels';
const METHODS_TO_BIND = ['handleClick'];
@@ -33,7 +33,7 @@ class PriorityMeter extends React.Component {
}
getPriorityLabel() {
switch (PiorityLevels[this.props.priorityType][this.getPriorityLevel()]) {
switch (PriorityLevels[this.props.priorityType][this.getPriorityLevel()]) {
case 'DONT_DOWNLOAD':
return this.props.intl.formatMessage({
id: 'priority.dont.download',
@@ -55,7 +55,6 @@ export default class TorrentHeading extends React.Component {
maxLevel={3}
priorityType="torrent"
onChange={this.handlePriorityChange}
showLabel
/>
</li>,
];