Skip to content

Commit 72da5f9

Browse files
authored
fix(ui): deletion of hook (#5169)
1 parent 667e606 commit 72da5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/app/shared/workflow/wnode/hook/hook.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class WorkflowNodeHookComponent implements OnInit {
4949
) {
5050
this.projectKey = this._store.selectSnapshot(ProjectState.projectSnapshot).key;
5151
let workflow = this._store.selectSnapshot(WorkflowState.workflowSnapshot);
52-
this.isReadOnly = workflow.permissions.writable || !!workflow.from_template;
52+
this.isReadOnly = !workflow.permissions.writable || !!workflow.from_template;
5353
}
5454

5555
ngOnInit(): void {

0 commit comments

Comments
 (0)