Skip to content

Commit

Permalink
fix(ui): deletion of hook (#5169)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored May 11, 2020
1 parent 667e606 commit 72da5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/workflow/wnode/hook/hook.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class WorkflowNodeHookComponent implements OnInit {
) {
this.projectKey = this._store.selectSnapshot(ProjectState.projectSnapshot).key;
let workflow = this._store.selectSnapshot(WorkflowState.workflowSnapshot);
this.isReadOnly = workflow.permissions.writable || !!workflow.from_template;
this.isReadOnly = !workflow.permissions.writable || !!workflow.from_template;
}

ngOnInit(): void {
Expand Down

0 comments on commit 72da5f9

Please sign in to comment.