Auto fill date and time input fields in DateTimeSetting page
-Under manual date and time input field will be auto populated with
defalut date and time.
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I62dcfe9ad37193d2ab6dfab1aea14eefb595ff37
diff --git a/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue b/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue
index 7358c0d..77ab430 100644
--- a/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue
+++ b/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue
@@ -293,6 +293,14 @@
},
manualDate() {
this.emitChange();
+ },
+ bmcTime() {
+ this.form.manual.date = this.$options.filters.formatDate(
+ this.$store.getters['global/bmcTime']
+ );
+ this.form.manual.time = this.$options.filters
+ .formatTime(this.$store.getters['global/bmcTime'])
+ .slice(0, 5);
}
},
created() {