chore: Import SLA helpers from utils (#9252)

chore: Add SLA helper from utils
This commit is contained in:
Muhsin Keloth
2024-05-03 11:13:32 +05:30
committed by GitHub
parent abbb087a53
commit 4ed13787d1
5 changed files with 10 additions and 274 deletions

View File

@@ -49,7 +49,7 @@
</template>
<script>
import { evaluateSLAStatus } from '../helpers/SLAHelper';
import { evaluateSLAStatus } from '@chatwoot/utils';
import SLAPopoverCard from './SLAPopoverCard.vue';
const REFRESH_INTERVAL = 60000;
@@ -137,7 +137,10 @@ export default {
}, REFRESH_INTERVAL);
},
updateSlaStatus() {
this.slaStatus = evaluateSLAStatus(this.appliedSLA, this.chat);
this.slaStatus = evaluateSLAStatus({
appliedSla: this.appliedSLA,
chat: this.chat,
});
},
openSlaPopover() {
if (!this.showExtendedInfo) return;