Skip to content

Commit

Permalink
chore: Import SLA helpers from utils (#9252)
Browse files Browse the repository at this point in the history
chore: Add SLA helper from utils
  • Loading branch information
muhsin-k committed May 3, 2024
1 parent abbb087 commit 4ed1378
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 274 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@braid/vue-formulate": "^2.5.2",
"@chatwoot/prosemirror-schema": "1.0.5",
"@chatwoot/utils": "^0.0.23",
"@chatwoot/utils": "^0.0.24",
"@hcaptcha/vue-hcaptcha": "^0.3.2",
"@june-so/analytics-next": "^2.0.0",
"@radix-ui/colors": "^1.0.1",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3177,10 +3177,10 @@
prosemirror-utils "^0.9.6"
prosemirror-view "^1.17.2"

"@chatwoot/utils@^0.0.23":
version "0.0.23"
resolved "https://registry.yarnpkg.com/@chatwoot/utils/-/utils-0.0.23.tgz#e961fd87ef9ee19c442bfcedac5fe0be2ef37726"
integrity sha512-BQ7DprXr7FIkSbHdDc1WonwH0rt/+B+WaaLaXNMjCcxJgkX/gZ8QMltruOfRp/S8cFyd9JfFQhNF0T9lz1OMvA==
"@chatwoot/utils@^0.0.24":
version "0.0.24"
resolved "https://registry.yarnpkg.com/@chatwoot/utils/-/utils-0.0.24.tgz#584e26b7fba2a8b23c049cc555497d0f35a5aebd"
integrity sha512-TEPA1LxrCfEVFYZvBj3bckn2sEljStriiZttF6lu3j1rdNn2tysqK9IwYcRBHS4nyfleRMG4kSFrqD653t3YfA==
dependencies:
date-fns "^2.29.1"

Expand Down

0 comments on commit 4ed1378

Please sign in to comment.