web: Adjust to new API URLs, implement update for Measure.

This commit is contained in:
2020-03-15 17:18:40 -05:00
parent c032bf10e7
commit 23600cedee
4 changed files with 29 additions and 8 deletions

View File

@ -12,7 +12,7 @@ import moment from 'moment';
export class MeasureConfigForm extends Vue {
@Prop({}) public value!: MeasureConfig;
@Prop({}) public disabled: boolean = false;
@Prop({}) public measureExists: boolean = false;
@Prop({}) public measureExists!: boolean;
public now = moment();
public formatStrings = [
@ -47,6 +47,14 @@ export class MeasureConfigForm extends Vue {
this.value.timestampDisplayFormat = this.selectedFormat;
}
}
private mounted() {
if (this.formatStrings.includes(this.value.timestampDisplayFormat)) {
this.selectedFormat = this.value.timestampDisplayFormat;
} else {
this.selectedFormat = 'custom';
}
}
}
export default MeasureConfigForm;