removed end date validation

pull/1097/head
smit95tpatel 2021-12-28 12:07:48 +05:30
parent c19628f61b
commit 8e701e2a49
2 changed files with 53 additions and 46 deletions

View File

@ -1,5 +1,4 @@
<template>
<form>
<div class="card contain-card mb-4">
<div class="card-header d-flex align-items-center">
<button
@ -11,6 +10,7 @@
<div>{{ $t("downtime_info") }}</div>
</div>
<div class="card-body">
<form>
<div class="form-group row">
<label class="col-sm-4 col-form-label">
{{
@ -86,7 +86,6 @@
type="text"
name="start"
class="form-control form-control-plaintext"
value=""
:config="config"
placeholder="Select Start Date"
/>
@ -104,9 +103,9 @@
type="text"
name="end"
class="form-control form-control-plaintext"
value=""
:config="config"
placeholder="Select End Date"
@on-change="handleDateChange"
/>
<small
v-if="errors.end"
@ -165,9 +164,9 @@
</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</template>
<script>
@ -256,10 +255,15 @@ export default {
}
},
methods: {
handleDateChange: function (selectedDates, dateStr, instance) {
if (!dateStr) {
instance.close();
}
},
isCreateDowntimeBtnEnabled: function () {
const { serviceId, subStatus, failures, start, end } = this.downtime;
const { serviceId, subStatus, failures, start } = this.downtime;
return serviceId && subStatus && failures && start && end;
return serviceId && subStatus && failures && start;
},
saveDowntime: async function () {
const id = this.$route.params.id;

View File

@ -1,29 +1,32 @@
module.exports = {
baseUrl: '/',
// baseUrl: '/',
assetsDir: 'assets',
filenameHashing: false,
productionTip: process.env.NODE_ENV !== 'production',
devtools: process.env.NODE_ENV !== 'production',
performance: process.env.NODE_ENV !== 'production',
devServer: {
disableHostCheck: true,
proxyTable: {
'/api': {
logLevel: 'debug',
target: 'http://0.0.0.0:8585',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
proxy: 'https://statping.concierge.stage.razorpay.in',
},
'/oauth': {
logLevel: 'debug',
target: 'http://0.0.0.0:8585',
changeOrigin: true,
pathRewrite: {
'^/oauth': ''
}
}
}
}
// productionTip: process.env.NODE_ENV !== 'production',
// devtools: process.env.NODE_ENV !== 'production',
// performance: process.env.NODE_ENV !== 'production',
// devServer: {
// disableHostCheck: true,
// proxyTable: {
// '/api': {
// logLevel: 'debug',
// target: 'http://0.0.0.0:8585',
// changeOrigin: true,
// pathRewrite: {
// '^/api': ''
// }
// },
// '/oauth': {
// logLevel: 'debug',
// target: 'http://0.0.0.0:8585',
// changeOrigin: true,
// pathRewrite: {
// '^/oauth': ''
// }
// }
// }
// }
};