Skip to content

Commit

Permalink
fix: selection in gateway popup added [WTEL-3995]
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirBeria committed Nov 10, 2023
1 parent b55fa0d commit 526ee4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</template>

<script setup>
import { computed, ref } from 'vue';
import { computed, onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import { StorageProviderType } from 'webitel-sdk';
import SelectionPopup from '../../../../../app/components/utils/selection-popup/selection-popup.vue';
Expand Down Expand Up @@ -41,6 +41,10 @@ function selectOption(option) {
selected.value = option;
}
onMounted(() => {
selectOption(options.value[0]);
});
function create() {
router.push({
name: `${RouteNames.COGNITIVE_PROFILES}-new`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export default {
},
},
created() {
this.selectOption(this.options[0]);
},
methods: {
selectOption(option) {
this.selected = option;
Expand Down

0 comments on commit 526ee4d

Please sign in to comment.