Skip to content

Commit

Permalink
fix grafici
Browse files Browse the repository at this point in the history
  • Loading branch information
dariodepa75 committed Nov 9, 2023
1 parent 0134f9a commit eeb0e9a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ export class CdsIntentComponent implements OnInit, OnDestroy, OnChanges {
* called when the action is modified
* */
public async onUpdateAndSaveAction(object) {
console.log('[CDS-INTENT] onUpdateAndSaveAction::::', object);
let connector = null;
if(object && object.type && object.type === 'connector'){
connector = object.element;
Expand All @@ -682,6 +683,10 @@ export class CdsIntentComponent implements OnInit, OnDestroy, OnChanges {
if(action && action._tdActionId){
replaceItemInArrayForKey('_tdActionId', this.intent.actions, action);
}
setTimeout(()=> {
// ATTENZIONE!!! trovare il modo di refreshare i connettori SOLO quando la action viene eliminata fisicamente dallo stage!!!
this.connectorService.updateConnector(this.intent.intent_id);
}, 0);
}
this.setActionIntentInListOfActions();
// console.log('[CDS-INTENT] onUpdateAndSaveAction:::: ', object, this.intent, this.intent.actions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export class CdsPanelButtonConfigurationComponent implements OnInit {
let checkLabel = this.checkButtonLabel();
let checkType = this.checkTypeButton();
console.log('checkAndSaveButton: ', checkLabel, checkType);

if (checkLabel && checkType) {
this.saveButton.emit(this.button);
}
Expand All @@ -224,6 +225,8 @@ export class CdsPanelButtonConfigurationComponent implements OnInit {
/** */
onChangeTitle(text: string) {
this.buttonLabel = text;
this.checkButtonLabel();
this.checkTypeButton();
// this.checkAndSaveButton();
}

Expand Down
19 changes: 15 additions & 4 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@


.isLast{

.connector {
right: -32px;
top: calc(50% - 10px);
}
.connector .point-connector {
width: 10px;
height: 10px;
border: 0;
}
.connector .point-connector-empty {
border: 1px solid;
border-color: rgba(0, 0, 0, 0.5);
width: 12px;
height: 12px;
border-color: #d2d2d2;
background: #ffffff;
width: 10px;
height: 10px;
}
.connector .point-connector-empty::before {
border: 0px;
}
.connector .point-connector::before {
border: 0px;
}
}

0 comments on commit eeb0e9a

Please sign in to comment.