1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 01:42:35 +01:00
Radarr/frontend/src/Movie/getMovieStatusDetails.js

33 lines
825 B
JavaScript
Raw Normal View History

import { icons } from 'Helpers/Props';
2020-11-23 04:34:51 +01:00
import translate from 'Utilities/String/translate';
2024-05-12 00:50:29 +02:00
export default function getMovieStatusDetails(status) {
let statusDetails = {
icon: icons.ANNOUNCED,
2020-11-23 04:34:51 +01:00
title: translate('Announced'),
2021-12-12 18:20:57 +01:00
message: translate('AnnouncedMsg')
};
if (status === 'deleted') {
statusDetails = {
icon: icons.MOVIE_DELETED,
2020-11-23 04:34:51 +01:00
title: translate('Deleted'),
message: translate('DeletedMsg')
};
} else if (status === 'inCinemas') {
statusDetails = {
icon: icons.IN_CINEMAS,
2020-11-23 04:34:51 +01:00
title: translate('InCinemas'),
message: translate('InCinemasMsg')
};
} else if (status === 'released') {
statusDetails = {
icon: icons.MOVIE_FILE,
2020-11-23 04:34:51 +01:00
title: translate('Released'),
message: translate('ReleasedMsg')
};
}
return statusDetails;
}