Skip to content
Snippets Groups Projects
Commit e21be007 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

Merge remote-tracking branch 'origin/master' into TMSS-318

parents a814e92c 0bfeef8e
No related branches found
No related tags found
2 merge requests!261Resolve TMSS-318,!260syncing cob-master with master again
......@@ -85,7 +85,7 @@ class TestHdf5_IO(unittest.TestCase):
file_annotations = read_file_annotations(path)
self.assertEqual(1, len(file_annotations))
self.assertEqual('This file was recorded in front of a live audience ;-)', file_annotations[0]['annotation'])
self.assertEqual(b'This file was recorded in front of a live audience ;-)', file_annotations[0]['annotation'])
self.assertEqual('test_user', file_annotations[0]['user'])
finally:
......
......@@ -683,7 +683,7 @@ optionaldataheader.forEach(header => {
columns.push({
Header: isString ? optionalheader[0][header] : optionalheader[0][header].name,
id: isString ? header : optionalheader[0][header].name,
accessor: header,
accessor: isString ? header : optionalheader[0][header].name,
filter: filtertype,
Filter: filterFn,
isVisible: false,
......
......@@ -37,7 +37,7 @@
}
.timeline-filters button {
width: auto !important;
// width: auto !important;
}
.timeline-week-span {
......
......@@ -116,8 +116,12 @@ export default (props) => {
list.push('disable-field');
}
ref.editors['root.time.at'].container.className = list.join(' ');
Array.prototype.slice.call(ref.editors['root.time.at'].control.getElementsByTagName('input')).forEach(input => input.disabled = true);
Array.prototype.slice.call(ref.editors['root.time.at'].control.getElementsByTagName('button')).forEach(button => button.disabled = true);
} else {
ref.editors['root.time.at'].container.className = ref.editors['root.time.at'].container.className.replace('disable-field', '');
Array.prototype.slice.call(ref.editors['root.time.at'].control.getElementsByTagName('input')).forEach(input => input.disabled = false);
Array.prototype.slice.call(ref.editors['root.time.at'].control.getElementsByTagName('button')).forEach(button => button.disabled = false);
}
if (props.callback) {
props.callback(jsonOutput, errors);
......
......@@ -144,8 +144,8 @@ export class WeekTimelineView extends Component {
name: suBlueprint.suDraft.name,
band: antennaSet,
duration: suBlueprint.durationInSec?`${(suBlueprint.durationInSec/3600).toFixed(2)}Hrs`:"",
start_time: moment.utc(`${displayDate.format('MM-DD-YYYY')} ${suBlueprint.start_time.split('T')[1]}`),
end_time: moment.utc(`${displayDate.format('MM-DD-YYYY')} ${suBlueprint.stop_time.split('T')[1]}`),
start_time: moment.utc(`${displayDate.format('YYYY-MM-DD')} ${suBlueprint.start_time.split('T')[1]}`),
end_time: moment.utc(`${displayDate.format('YYYY-MM-DD')} ${suBlueprint.stop_time.split('T')[1]}`),
bgColor: suBlueprint.status? STATUS_COLORS[suBlueprint.status.toUpperCase()]:"#2196f3",
selectedBgColor: suBlueprint.status? STATUS_COLORS[suBlueprint.status.toUpperCase()]:"#2196f3"};
return item;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment