Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-11-18 16:06:24 +01:00
parent 3d905714c3
commit f35698005a
7 changed files with 20 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
import { Component, Prop, Vue, Watch } from 'vue-property-decorator';
import { IActor } from '@/types/actor';
import IdentityPicker from './IdentityPicker.vue';
@@ -22,6 +22,11 @@ export default class IdentityPickerWrapper extends Vue {
isComponentModalActive: boolean = false;
currentIdentity: IActor = this.value;
@Watch('value')
updateCurrentActor(value) {
this.currentIdentity = value;
}
relay(identity: IActor) {
this.currentIdentity = identity;
this.$emit('input', identity);
@@ -36,4 +41,4 @@ export default class IdentityPickerWrapper extends Vue {
height: 1.5em;
vertical-align: text-bottom;
}
</style>
</style>