-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
17468 fixed Entity Type menu #673
17468 fixed Entity Type menu #673
Conversation
- simplified entity type menu bindings - fixed entity type reactivity bug - misc cleanup
hide-details="auto" | ||
filled | ||
v-model="entity_type_options_select_bind" | ||
:value="isConversion ? getOriginEntityTypeCd : entity_type_cd" | ||
@change="setClearErrors(); entity_type_cd = $event" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One less level of indirection (instead of get + set).
@@ -274,7 +275,8 @@ | |||
:href="colinLink" | |||
target="_blank" | |||
> | |||
Go to Corporate Online to {{ goToColinText }} <v-icon small class="ml-1">mdi-open-in-new</v-icon> | |||
Go to Corporate Online to {{ isConversion ? 'Alter' : 'Register' }} | |||
<v-icon small class="ml-1">mdi-open-in-new</v-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved very simple function code into here (only place it was used).
if (this.isContinuationIn) return 'Continue In Now' | ||
if (this.isAmalgamation) return 'Amalgamate Now' | ||
if (this.isConversion) return 'Alter Now' | ||
if (this.isRestoration) return 'Restore Now' | ||
return 'Incorporate Now' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easier pattern to read/understand/extend.
|
@@ -1,12 +1,12 @@ | |||
<template> | |||
<v-dialog v-model="showModal" :max-width="width" persistent> | |||
<v-dialog :value="getPickEntityModalVisible" :max-width="width" persistent> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dialog doesn't set this value so can use store getter directly here.
closeIconClicked () { | ||
this.setPickEntityModalVisible(false) | ||
// clear "View all business types" selection | ||
this.setEntityTypeCd(null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compare this to search.vue where we set this to empty string. This maintains reactivity, so the v-select clears itself correctly.
|
||
set showModal (value: boolean) { | ||
this.setPickEntityModalVisible(value) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just used the store getter/action directly.
/gcbrun |
Temporary Url for review: https://namerequest-dev--pr-673-kfkjfou9.web.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Sev 👍
6dac03a
into
bcgov:feature-way-of-navigating
* - app version = 5.0.37 - simplified entity type menu bindings - fixed entity type reactivity bug - misc cleanup * - cleaned up / fixed modal bindings
* - app version = 5.0.37 - simplified entity type menu bindings - fixed entity type reactivity bug - misc cleanup * - cleaned up / fixed modal bindings
Issue #: bcgov/entity#17468
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namerequest license (Apache 2.0).