diff options
| author | Jukka Jokiniva <jukka.jokiniva@qt.io> | 2025-12-08 16:56:07 +0200 |
|---|---|---|
| committer | Jukka Jokiniva <jukka.jokiniva@qt.io> | 2025-12-16 06:34:40 +0000 |
| commit | 40a0143e022b773213f55a9a0f96fd408a9942ec (patch) | |
| tree | bb7418c6d96683245337ecd7769ae99b6e3ea94c /static | |
| parent | 7b9e59553ef28b1b9c304558b068396e2794c744 (diff) | |
Fix plugin callback error for show-revision-actionsv3.12-based
Revision actions returned by the server have changed.
Action "submit" is not always returned which caused reference
to non-existing index.
Change-Id: I4b7df3a9dbf541fce977b493a51294d55a74c51e
Reviewed-by: Daniel Smith <daniel.smith@qt.io>
Diffstat (limited to 'static')
| -rw-r--r-- | static/qt-workflow-ui.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/static/qt-workflow-ui.js b/static/qt-workflow-ui.js index a1c8687..e607139 100644 --- a/static/qt-workflow-ui.js +++ b/static/qt-workflow-ui.js @@ -787,8 +787,7 @@ Gerrit.install(plugin => { if (key === 'gerrit-plugin-qt-workflow~stage') { // hide submit button when it would be disabled next to the stage button - let submit = actions['submit']; - if (!submit.enabled) { + if (actions['submit'] && !actions['submit'].enabled) { cActions.setActionHidden('revision', 'submit', true); } } |
