Skip to content

Commit

Permalink
Fix TagDialog when opening from within TagsDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
swaterkamp committed Aug 15, 2018
1 parent 738eba6 commit 29b5a72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gsa/src/web/entities/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ class EntitiesContainer extends React.Component {
}

openTagDialog() {
this.setState({tagDialogVisible: true});
this.setState({
resourceCount: 0,
tagDialogVisible: true,
});
this.renewSession();
}

Expand Down Expand Up @@ -519,6 +522,7 @@ class EntitiesContainer extends React.Component {
isUpdating,
loadedFilter,
multiTagEntitiesCount,
resourceCount,
selected,
selectionType,
tag = {},
Expand Down Expand Up @@ -618,6 +622,7 @@ class EntitiesContainer extends React.Component {
{tagDialogVisible &&
<TagDialog
fixed={true}
resourceCount={resourceCount}
resources={selected}
resource_type={entitiesType}
resource_types={resourceTypes}
Expand Down

0 comments on commit 29b5a72

Please sign in to comment.