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,16 +1,16 @@
<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 class="btn p-0 mr-2"
class="btn p-0 mr-2" @click="$router.push('/dashboard/downtimes');"
@click="$router.push('/dashboard/downtimes');" >
> <FontAwesomeIcon icon="arrow-circle-left" />
<FontAwesomeIcon icon="arrow-circle-left" /> </button>
</button> <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> </form>
</div> </div>
</form> </div>
</template> </template>
<script> <script>
@ -254,12 +253,17 @@ export default {
subStatus: sub_status subStatus: sub_status
}; };
} }
}, },
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', devServer: {
devtools: process.env.NODE_ENV !== 'production', proxy: 'https://statping.concierge.stage.razorpay.in',
performance: process.env.NODE_ENV !== 'production', },
devServer: { // productionTip: process.env.NODE_ENV !== 'production',
disableHostCheck: true, // devtools: process.env.NODE_ENV !== 'production',
proxyTable: { // performance: process.env.NODE_ENV !== 'production',
'/api': { // devServer: {
logLevel: 'debug', // disableHostCheck: true,
target: 'http://0.0.0.0:8585', // proxyTable: {
changeOrigin: true, // '/api': {
pathRewrite: { // logLevel: 'debug',
'^/api': '' // target: 'http://0.0.0.0:8585',
} // changeOrigin: true,
}, // pathRewrite: {
'/oauth': { // '^/api': ''
logLevel: 'debug', // }
target: 'http://0.0.0.0:8585', // },
changeOrigin: true, // '/oauth': {
pathRewrite: { // logLevel: 'debug',
'^/oauth': '' // target: 'http://0.0.0.0:8585',
} // changeOrigin: true,
} // pathRewrite: {
} // '^/oauth': ''
} // }
// }
// }
// }
}; };