mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
TorrentHeading: do not display priority text label
The button shifting due to length of text is unacceptable to UX.
This commit is contained in:
@@ -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>,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user