bugs fixed for checklist page
This commit is contained in:
parent
30499df329
commit
7e72940eae
|
|
@ -524,7 +524,13 @@ public static class UserMethods
|
||||||
Installation installation,
|
Installation installation,
|
||||||
String notifiedByName)
|
String notifiedByName)
|
||||||
{
|
{
|
||||||
var checklistLink = $"https://monitor.inesco.energy/sodiohome_installations/installation/{installation.Id}/checklist";
|
var productPath = installation.Product switch
|
||||||
|
{
|
||||||
|
4 => "sodistoregrid_installations",
|
||||||
|
5 => "sodistorepro_installations",
|
||||||
|
_ => "sodiohome_installations"
|
||||||
|
};
|
||||||
|
var checklistLink = $"https://monitor.inesco.energy/{productPath}/installation/{installation.Id}/checklist";
|
||||||
var installationName = String.IsNullOrEmpty(installation.Name) ? $"#{installation.Id}" : installation.Name;
|
var installationName = String.IsNullOrEmpty(installation.Name) ? $"#{installation.Id}" : installation.Name;
|
||||||
var commentsBlock = String.IsNullOrWhiteSpace(item.Comments) ? "" : item.Comments;
|
var commentsBlock = String.IsNullOrWhiteSpace(item.Comments) ? "" : item.Comments;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -388,7 +388,8 @@ function Installation(props: singleInstallationProps) {
|
||||||
currentTab != 'history' &&
|
currentTab != 'history' &&
|
||||||
// currentTab != 'manage' &&
|
// currentTab != 'manage' &&
|
||||||
currentTab != 'log' &&
|
currentTab != 'log' &&
|
||||||
currentTab != 'installationTickets' && (
|
currentTab != 'installationTickets' &&
|
||||||
|
currentTab != 'checklist' && (
|
||||||
<Container
|
<Container
|
||||||
maxWidth="xl"
|
maxWidth="xl"
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
||||||
|
|
@ -498,7 +498,8 @@ function SodioHomeInstallation(props: singleInstallationProps) {
|
||||||
currentTab != 'log' &&
|
currentTab != 'log' &&
|
||||||
currentTab != 'report' &&
|
currentTab != 'report' &&
|
||||||
currentTab != 'installationTickets' &&
|
currentTab != 'installationTickets' &&
|
||||||
currentTab != 'documents' && (
|
currentTab != 'documents' &&
|
||||||
|
currentTab != 'checklist' && (
|
||||||
<Container
|
<Container
|
||||||
maxWidth="xl"
|
maxWidth="xl"
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ function SodioHomeInstallationTabs(props: SodioHomeInstallationTabsProps) {
|
||||||
const dataCollectionDisabled =
|
const dataCollectionDisabled =
|
||||||
currentInstallation?.dataCollectionEnabled === false
|
currentInstallation?.dataCollectionEnabled === false
|
||||||
|| (installations.length === 1 && installations[0].dataCollectionEnabled === false);
|
|| (installations.length === 1 && installations[0].dataCollectionEnabled === false);
|
||||||
const allowedWhenDisabled = ['list', 'tree', 'information', 'history', 'installationTickets', 'documents'];
|
const allowedWhenDisabled = ['list', 'tree', 'information', 'history', 'installationTickets', 'documents', 'checklist'];
|
||||||
|
|
||||||
const tabs = inInstallationView && currentUser.userType == UserType.admin
|
const tabs = inInstallationView && currentUser.userType == UserType.admin
|
||||||
? [
|
? [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue