File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -540,13 +540,8 @@ function addCmdToTable(_cmd) {
540
540
tr += "</td>" ;
541
541
tr += "<td>" ;
542
542
tr += '<div class="input-group">' ;
543
- if ( init ( _cmd . logicalId ) . includes ( "geoloc_" ) ) {
544
- tr +=
545
- '<input disabled class="cmdAttr form-control input-sm roundedLeft" data-l1key="name" placeholder="{{Nom de la commande}}">' ;
546
- } else {
547
- tr +=
548
- '<input class="cmdAttr form-control input-sm roundedLeft" data-l1key="name" placeholder="{{Nom de la commande}}">' ;
549
- }
543
+ var isGeoloc = init ( _cmd . logicalId ) . includes ( "geoloc_" ) ;
544
+ tr += `<input ${ isGeoloc ? 'disabled' : '' } class="cmdAttr form-control input-sm roundedLeft" data-l1key="name" placeholder="{{Nom de la commande}}">` ;
550
545
551
546
tr +=
552
547
'<span class="input-group-btn"><a class="cmdAction btn btn-sm btn-default" data-l1key="chooseIcon" title="{{Choisir une icône}}"><i class="fas fa-icons"></i></a></span>' ;
You can’t perform that action at this time.
0 commit comments