mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 03:16:41 +00:00
6826: Fixes padStart error due to using it on a number rather than a string
This commit is contained in:
parent
2719a283d2
commit
bdf8601091
@ -131,7 +131,11 @@
|
||||
aria-label="Submit time offsets"
|
||||
@click.prevent="submit"
|
||||
></button>
|
||||
<button class="c-button icon-x" @click.prevent="hide" aria-label="Discard time offsets"></button>
|
||||
<button
|
||||
class="c-button icon-x"
|
||||
aria-label="Discard time offsets"
|
||||
@click.prevent="hide"
|
||||
></button>
|
||||
</div>
|
||||
</form>
|
||||
</template>
|
||||
@ -173,7 +177,7 @@ export default {
|
||||
methods: {
|
||||
format(ref) {
|
||||
const curVal = this[ref];
|
||||
this[ref] = curVal.padStart(2, '0');
|
||||
this[ref] = curVal.toString().padStart(2, '0');
|
||||
},
|
||||
validate() {
|
||||
let disabled = false;
|
||||
|
Loading…
Reference in New Issue
Block a user