Compare commits
2 Commits
d2224dfd22
...
1e6c10b96e
Author | SHA1 | Date |
---|---|---|
Noe | 1e6c10b96e | |
Noe | 8244067351 |
|
@ -19,6 +19,12 @@ public static partial class Db
|
|||
.FirstOrDefault(i => i.Id == id);
|
||||
}
|
||||
|
||||
public static UserAction? GetActionById(Int64? id)
|
||||
{
|
||||
return UserActions
|
||||
.FirstOrDefault(i => i.Id == id);
|
||||
}
|
||||
|
||||
public static User? GetUserById(Int64? id)
|
||||
{
|
||||
return Users
|
||||
|
|
|
@ -276,7 +276,10 @@ function Installation(props: singleInstallationProps) {
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
{loading && currentTab != 'information' && currentTab != 'overview' && (
|
||||
{loading &&
|
||||
currentTab != 'information' &&
|
||||
currentTab != 'overview' &&
|
||||
currentTab != 'log' && (
|
||||
<Container
|
||||
maxWidth="xl"
|
||||
sx={{
|
||||
|
|
|
@ -14,7 +14,7 @@ function SalidomoInstallationTabs() {
|
|||
const location = useLocation();
|
||||
const context = useContext(UserContext);
|
||||
const { currentUser } = context;
|
||||
const tabList = ['batteryview', 'information'];
|
||||
const tabList = ['batteryview', 'information', 'overview', 'log'];
|
||||
|
||||
const [currentTab, setCurrentTab] = useState<string>(undefined);
|
||||
const [fetchedInstallations, setFetchedInstallations] =
|
||||
|
|
Loading…
Reference in New Issue