From b0536ec9aef492d3593c61038b27e62bafe36f8d Mon Sep 17 00:00:00 2001 From: Hugo Zigha Date: Thu, 2 Sep 2021 11:29:34 +0200 Subject: [PATCH] TT#139201 Issue - AutoAttendant - Prevent user from adding multiple slots with the same slot number Change-Id: I01dfdd976125e9bb8af9250499ff979bf8178644 --- src/store/pbx-auto-attendants.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/pbx-auto-attendants.js b/src/store/pbx-auto-attendants.js index 09b9b45a..00a2292b 100644 --- a/src/store/pbx-auto-attendants.js +++ b/src/store/pbx-auto-attendants.js @@ -1,13 +1,14 @@ import { getAutoAttendants, editSubscriberSlots } from '../api/pbx-auto-attendants' import { getSubscribers } from '../api/subscriber' import { displayName } from 'src/filters/subscriber' + export default { namespaced: true, state: { slots: [], newSlots: [], subscribers: [], - slotsNumbers: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] + slotsNumbers: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] }, getters: { slots (state) {