Skip to content

Commit

Permalink
Remove unused property (CFM-107)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Apr 2, 2022
1 parent a5cc73f commit b65e2db
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions app/src/View/Helper/FieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ public function control(string $fieldName,
$pickerTarget = $fieldName;
$pickerTimed = true; // TODO: set false if date-only
$pickerAmPm = false; // TODO: allow change between AM/PM and 24-hour mode
if(!empty($coptions['value'])) {
$pickerDateTime = $coptions['value'];
}

$controlCode .= '
<script type="module">
import CmDateTimePicker from "' . $this->Url->script('comanage/components/datepicker/cm-datetimepicker.js') . '";
Expand All @@ -127,7 +125,6 @@ public function control(string $fieldName,
id: "' . $pickerId . '",
target: "' . $pickerTarget . '",
date: "' . $pickerDate . '",
dateTime: "' . $pickerDateTime .'",
timed: ' . ($pickerTimed ? 'true' : 'false') . ',
ampm: ' . ($pickerAmPm ? 'true' : 'false') . ',
txt: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default {
id: String,
target: String,
date: String,
dateTime: String,
timed: Boolean,
ampm: Boolean,
txt: Object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
export default {
props: {
target: String,
datetime: String,
ampm: Boolean,
txt: Object
},
Expand Down

0 comments on commit b65e2db

Please sign in to comment.