From 0b8cffd610283aff02c179eb76b9e85a2acd01f8 Mon Sep 17 00:00:00 2001
From: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Date: Tue, 23 Jun 2020 08:44:54 -0700
Subject: Fix errors on local user management add user

Adding a new user on the local user page created two toasts,
one success and one error.
Fixed by removing duplicate @ok callback.

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I52b2625480cd7705141d99ab55cf30b3073946df
---
 src/views/AccessControl/LocalUserManagement/ModalUser.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/views/AccessControl/LocalUserManagement/ModalUser.vue')

diff --git a/src/views/AccessControl/LocalUserManagement/ModalUser.vue b/src/views/AccessControl/LocalUserManagement/ModalUser.vue
index b426dd91..3c46d666 100644
--- a/src/views/AccessControl/LocalUserManagement/ModalUser.vue
+++ b/src/views/AccessControl/LocalUserManagement/ModalUser.vue
@@ -1,5 +1,5 @@
 <template>
-  <b-modal id="modal-user" ref="modal" @ok="onOk" @hidden="resetForm">
+  <b-modal id="modal-user" ref="modal" @hidden="resetForm">
     <template v-slot:modal-title>
       <template v-if="newUser">
         {{ $t('pageLocalUserManagement.addUser') }}
@@ -190,7 +190,7 @@
       <b-button variant="secondary" @click="cancel()">
         {{ $t('global.action.cancel') }}
       </b-button>
-      <b-button form="form-user" type="submit" variant="primary" @click="ok()">
+      <b-button form="form-user" type="submit" variant="primary" @click="onOk">
         <template v-if="newUser">
           {{ $t('pageLocalUserManagement.addUser') }}
         </template>
-- 
cgit v1.2.3

