maxgui/src/store/user.js
/**
         * @param {String} id id of the network user
         */
@param {String} id id of the network user
@param { String } id id of the network user
async deleteNetworkUserById({ dispatch, commit }, id) {
            try {
                let res = await this.vue.$axios.delete(`/users/inet/${id}`)
                if (res.status === 204) {
                    await dispatch('fetchAllNetworkUsers')
                    commit(
                        'SET_SNACK_BAR_MESSAGE',
                        {
                            text: [`Network user ${id} is deleted`],
                            type: 'success',
                        },
                        { root: true }
                    )
                }
            } catch (e) {
                const logger = this.vue.$logger('store-user-deleteNetworkUserById')
                logger.error(e)
            }
        }
async deleteNetworkUserById ( { dispatch , commit } , id ) { try { let res = await this . vue . $axios . delete ( ` ${ id } ` ) if ( res . status === 204 ) { await dispatch ( 'fetchAllNetworkUsers' ) commit ( 'SET_SNACK_BAR_MESSAGE' , { text : [ ` ${ id } ` ] , type : 'success' , } , { root : true } ) } } catch ( e ) { const logger = this . vue . $logger ( 'store-user-deleteNetworkUserById' ) logger . error ( e ) } }
@param {String} id id of the network user
@param { String } id id of the network user
// response ok