added the functions for getting preferred units to the user model
This commit is contained in:
parent
a2944d7a60
commit
c6bb7aa24a
2 changed files with 13 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ export default function ContractTransactionTable(props: Props) {
|
||||||
<DialogTitle>Select Files to Upload</DialogTitle>
|
<DialogTitle>Select Files to Upload</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<FileUploader
|
<FileUploader
|
||||||
|
hasFilePermission={permissions.includes(pond.Permission.PERMISSION_FILE_MANAGEMENT)}
|
||||||
keys={[contract.key(), selectedTransaction.transaction.key]}
|
keys={[contract.key(), selectedTransaction.transaction.key]}
|
||||||
types={["contract", "transaction"]}
|
types={["contract", "transaction"]}
|
||||||
toAttach={{
|
toAttach={{
|
||||||
|
|
|
||||||
|
|
@ -105,4 +105,16 @@ export class User {
|
||||||
public tempUnit(): pond.TemperatureUnit {
|
public tempUnit(): pond.TemperatureUnit {
|
||||||
return this.settings.temperatureUnit
|
return this.settings.temperatureUnit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public pressureUnit(): pond.PressureUnit {
|
||||||
|
return this.settings.pressureUnit
|
||||||
|
}
|
||||||
|
|
||||||
|
public distanceUnit(): pond.DistanceUnit {
|
||||||
|
return this.settings.distanceUnit
|
||||||
|
}
|
||||||
|
|
||||||
|
public grainUnit(): pond.GrainUnit {
|
||||||
|
return this.settings.grainUnit
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue