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

View File

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