From e4d27278758c3d304a8b48ecb6fe8c42bb6d9998 Mon Sep 17 00:00:00 2001 From: Crystal Lai Date: Thu, 28 Nov 2019 09:56:57 +0100 Subject: [PATCH 1/3] New note dialog: make all fields editable when fixed --- gsa/src/web/pages/notes/dialog.js | 54 ++++++++++++++----------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/gsa/src/web/pages/notes/dialog.js b/gsa/src/web/pages/notes/dialog.js index 649647b047..8d4b3b6cf2 100644 --- a/gsa/src/web/pages/notes/dialog.js +++ b/gsa/src/web/pages/notes/dialog.js @@ -122,11 +122,16 @@ const NoteDialog = ({ {({values: state, onValueChange}) => { return ( - {state.fixed && ( + {state.fixed && isDefined(oid) && ( {renderNvtName(oid, nvt_name)} )} + {state.fixed && !isDefined(oid) && ( + + {renderNvtName(state.oid, nvt_name)} + + )} {is_edit && !state.fixed && ( - {!state.fixed && ( - - )} + @@ -249,19 +251,16 @@ const NoteDialog = ({ - {!state.fixed && ( - - )} + @@ -329,20 +328,17 @@ const NoteDialog = ({ - {!state.fixed && ( - From 314835866a377dd1e5dca32d5e9b203e19baac23 Mon Sep 17 00:00:00 2001 From: Crystal Lai Date: Thu, 28 Nov 2019 09:58:56 +0100 Subject: [PATCH 2/3] Edit previous changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f2b83822d..53fa742f31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [#1507](https://github.com/greenbone/gsa/pull/1507) ### Changed -- Override dialog: Make host/port/task fields editable even when fixed, and display oid when no name is defined [#1814](https://github.com/greenbone/gsa/pull/1814) +- new override and note dialog: Make host/port/task fields editable even when fixed, and display oid when no name is defined [#1814](https://github.com/greenbone/gsa/pull/1814) [#1817](https://github.com/greenbone/gsa/pull/1817) - Use consistent setting naming [#1774](https://github.com/greenbone/gsa/pull/1774) - Consider visibility status of page for calculating the reload interval [#1761](https://github.com/greenbone/gsa/pull/1761) - Do not simplify filterString in content composer for report download [#1733](https://github.com/greenbone/gsa/pull/1733) From 48ea3bea751a29181d418b4216462d578ceaab12 Mon Sep 17 00:00:00 2001 From: saberlynx <51318048+saberlynx@users.noreply.github.com> Date: Thu, 28 Nov 2019 10:52:35 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Björn Ricks --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53fa742f31..5ad7587d4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [#1507](https://github.com/greenbone/gsa/pull/1507) ### Changed -- new override and note dialog: Make host/port/task fields editable even when fixed, and display oid when no name is defined [#1814](https://github.com/greenbone/gsa/pull/1814) [#1817](https://github.com/greenbone/gsa/pull/1817) +- New override and note dialog: Make host/port/task fields editable even when fixed, and display oid when no name is defined [#1814](https://github.com/greenbone/gsa/pull/1814) [#1817](https://github.com/greenbone/gsa/pull/1817) - Use consistent setting naming [#1774](https://github.com/greenbone/gsa/pull/1774) - Consider visibility status of page for calculating the reload interval [#1761](https://github.com/greenbone/gsa/pull/1761) - Do not simplify filterString in content composer for report download [#1733](https://github.com/greenbone/gsa/pull/1733)