미할당 모듈있을때 alert 추가
This commit is contained in:
parent
bc3a19d041
commit
8016b05485
@ -521,6 +521,15 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
const handlePassivityAllocationCkeck = () => {
|
const handlePassivityAllocationCkeck = () => {
|
||||||
let pcsCount = {}
|
let pcsCount = {}
|
||||||
let result = {}
|
let result = {}
|
||||||
|
const notAllocationModules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE && !obj.circuit)
|
||||||
|
if (notAllocationModules.length > 0) {
|
||||||
|
swalFire({
|
||||||
|
text: getMessage('not.allocation.exist.module'),
|
||||||
|
type: 'alert',
|
||||||
|
icon: 'warning',
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
canvas
|
canvas
|
||||||
.getObjects()
|
.getObjects()
|
||||||
.filter((obj) => obj.name === POLYGON_TYPE.MODULE)
|
.filter((obj) => obj.name === POLYGON_TYPE.MODULE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user