web: Adjust to new API URLs, implement update for Measure.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user