Skip to content

Commit

Permalink
[BI-563] return to first page after archiving trait
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeidlin committed Mar 1, 2021
1 parent 6f42a14 commit 061aae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/trait/TraitListsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export default class TraitTable extends Vue {
if (traitIndex !== -1) { this.traits.splice(traitIndex, 1, updatedTrait); }

this.deactivateActive = false;
this.paginationController.updatePage(1);
this.traitSidePanelState.bus.$emit(this.traitSidePanelState.closePanelEvent);
this.$emit('show-success-notification', `"${traitClone.traitName}" successfully ${ traitClone.active ? 'restored' : 'archived'}`);
} catch(err) {
Expand Down

0 comments on commit 061aae7

Please sign in to comment.