minor changes
This commit is contained in:
@@ -152,7 +152,6 @@ module.exports = {
|
||||
if (!this.selected_date || !this.selected_hours || !this.selected_minutes) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const datetime = `${this.selected_date} ${this.selected_hours}:${this.selected_minutes}:00`;
|
||||
const response = await api.put("time", { datetime });
|
||||
@@ -162,8 +161,6 @@ module.exports = {
|
||||
} else {
|
||||
throw response;
|
||||
}
|
||||
|
||||
console.log("Time update successful: ", response);
|
||||
} catch (error) {
|
||||
alert("Error updating time: ", error);
|
||||
}
|
||||
|
||||
@@ -67,6 +67,6 @@ script#admin-general-view-template(type="text/x-template")
|
||||
h2 Date/Time
|
||||
.pure-form
|
||||
input(id="date" type="date" v-model="selected_date")
|
||||
input(id="hours" type="text" v-model="selected_hours" placeholder="HH" maxlength="2" min="0" max="23")
|
||||
input(id="minutes" type="text" v-model="selected_minutes" placeholder="MM" maxlength="2" min="0" max="59")
|
||||
input(id="hours" type="text" v-model="selected_hours" placeholder="HH" maxlength="2" min="0" max="23" style="width:45px")
|
||||
input(id="minutes" type="text" v-model="selected_minutes" placeholder="MM" maxlength="2" min="0" max="59" style="width:45px")
|
||||
button.pure-button.pure-button-primary(@click="change_date_time", style="margin:5px") Update Date/Time
|
||||
|
||||
Reference in New Issue
Block a user